app: lock explicitly before refreshing contexts

Signed-off-by: Joe Julian <me@joejulian.name>
This commit is contained in:
Joe Julian
2026-04-21 06:31:35 -07:00
parent dfe4ff0200
commit 7bb7a1407f
4 changed files with 8 additions and 11 deletions
+2
View File
@@ -165,6 +165,8 @@ type frameEvent struct {
Sync bool
}
// The caller must hold the context lock while using API, Refresh,
// RenderTarget, or Present.
type context interface {
API() gpu.API
RenderTarget() (gpu.RenderTarget, error)