app/internal/d3d11: fix GOOS=windows GOARCH=386 build

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-28 09:56:39 +01:00
parent bfb50cef5d
commit 2fd7e2dd9b
+2 -2
View File
@@ -533,7 +533,7 @@ type _D3D11_MAPPED_SUBRESOURCE struct {
type ErrorCode struct { type ErrorCode struct {
Name string Name string
Code int Code uint
} }
type _D3D11_RASTERIZER_DESC struct { type _D3D11_RASTERIZER_DESC struct {
@@ -969,7 +969,7 @@ func (s *_IDXGISwapChain) Present(SyncInterval int, Flags uint32) error {
uintptr(Flags), uintptr(Flags),
) )
if r != 0 { if r != 0 {
return ErrorCode{Name: "IDXGISwapChainPresent", Code: int(r)} return ErrorCode{Name: "IDXGISwapChainPresent", Code: uint(r)}
} }
return nil return nil
} }