mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
7321e86a6b
commit
a0e1d08123
@ -577,7 +577,7 @@ func (g *Graphics) End(present bool) error {
|
||||
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 {
|
||||
g.screenImage.transiteState(g.drawCommandList, _D3D12_RESOURCE_STATE_PRESENT)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user