internal/graphicsdriver/directx: update comments

Updates #2081
This commit is contained in:
Hajime Hoshi 2022-04-26 11:20:45 +09:00
parent 7321e86a6b
commit a0e1d08123

View File

@ -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)
}