internal/graphicsdriver/directx: bug fix: missing error checking

This commit is contained in:
Hajime Hoshi 2023-03-26 18:52:55 +09:00
parent c9469a64ee
commit fe5c3354fc

View File

@ -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?