mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/directx: bug fix: missing error checking
This commit is contained in:
parent
c9469a64ee
commit
fe5c3354fc
@ -481,7 +481,9 @@ func (g *graphics12) updateSwapChain(width, height int) error {
|
||||
}
|
||||
|
||||
func (g *graphics12) initSwapChainDesktop(width, height int) error {
|
||||
g.graphicsInfra.initSwapChain(width, height, unsafe.Pointer(g.commandQueue), g.window)
|
||||
if err := g.graphicsInfra.initSwapChain(width, height, unsafe.Pointer(g.commandQueue), g.window); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO: Get the current buffer index?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user