mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
parent
7321e86a6b
commit
a0e1d08123
@ -577,7 +577,7 @@ func (g *Graphics) End(present bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// The screen image can be nil in the very first frame (#2081).
|
// The screen image can be nil when resizing the window (#2081).
|
||||||
if present && g.screenImage != nil {
|
if present && g.screenImage != nil {
|
||||||
g.screenImage.transiteState(g.drawCommandList, _D3D12_RESOURCE_STATE_PRESENT)
|
g.screenImage.transiteState(g.drawCommandList, _D3D12_RESOURCE_STATE_PRESENT)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user