internal/atlas: add comments

This commit is contained in:
Hajime Hoshi 2023-10-18 01:01:21 +09:00
parent 630789757f
commit 315450474a

View File

@ -719,6 +719,7 @@ func (i *Image) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, path stri
} }
func EndFrame(graphicsDriver graphicsdriver.Graphics, swapBuffersForGL func()) error { func EndFrame(graphicsDriver graphicsdriver.Graphics, swapBuffersForGL func()) error {
// Flushing draw commands starts. Stop queuing new graphics commands until the next frame.
backendsM.Lock() backendsM.Lock()
if err := restorable.EndFrame(graphicsDriver, swapBuffersForGL); err != nil { if err := restorable.EndFrame(graphicsDriver, swapBuffersForGL); err != nil {