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
-3
View File
@@ -115,9 +115,6 @@ func (c *context) Unlock() {
}
func (c *context) Refresh() error {
if C.gio_makeCurrent(c.ctx) == 0 {
return errors.New("[EAGLContext setCurrentContext] failed")
}
if !c.init {
c.init = true
c.frameBuffer = c.c.CreateFramebuffer()