mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app/internal/d3d11: fix GOOS=windows GOARCH=386 build
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user