app: lock explicitly before refreshing contexts

Signed-off-by: Joe Julian <me@joejulian.name>
This commit is contained in:
Joe Julian
2026-04-20 16:51:31 -07:00
parent dfe4ff0200
commit b9aa9e59f7
4 changed files with 92 additions and 9 deletions
+1
View File
@@ -169,6 +169,7 @@ type context interface {
API() gpu.API
RenderTarget() (gpu.RenderTarget, error)
Present() error
// Refresh assumes the context is already locked and current.
Refresh() error
Release()
Lock() error