mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
app/internal/egl,app/internal/window: move Lock/Unlock methods
EGL contexts don't need locking, so their Lock and Unlock methods are empty. Remove them and add them where necessary instead. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -107,10 +107,6 @@ func (c *Context) Functions() *gl.Functions {
|
|||||||
return c.c
|
return c.c
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) Lock() {}
|
|
||||||
|
|
||||||
func (c *Context) Unlock() {}
|
|
||||||
|
|
||||||
func (c *Context) ReleaseSurface() {
|
func (c *Context) ReleaseSurface() {
|
||||||
if c.eglSurf == nilEGLSurface {
|
if c.eglSurf == nilEGLSurface {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -48,3 +48,7 @@ func (c *context) MakeCurrent() error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *context) Lock() {}
|
||||||
|
|
||||||
|
func (c *context) Unlock() {}
|
||||||
|
|||||||
@@ -67,3 +67,7 @@ func (c *context) MakeCurrent() error {
|
|||||||
}
|
}
|
||||||
return c.Context.MakeCurrent()
|
return c.Context.MakeCurrent()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *context) Lock() {}
|
||||||
|
|
||||||
|
func (c *context) Unlock() {}
|
||||||
|
|||||||
@@ -42,3 +42,7 @@ func (c *context) MakeCurrent() error {
|
|||||||
c.Context.EnableVSync(true)
|
c.Context.EnableVSync(true)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *context) Lock() {}
|
||||||
|
|
||||||
|
func (c *context) Unlock() {}
|
||||||
|
|||||||
@@ -44,3 +44,7 @@ func (c *x11Context) MakeCurrent() error {
|
|||||||
c.Context.EnableVSync(true)
|
c.Context.EnableVSync(true)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *x11Context) Lock() {}
|
||||||
|
|
||||||
|
func (c *x11Context) Unlock() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user