diff --git a/ui/app/gl_macos.go b/ui/app/gl_macos.go index 7805d2a1..124a126e 100644 --- a/ui/app/gl_macos.go +++ b/ui/app/gl_macos.go @@ -50,8 +50,6 @@ func (c *context) Release() { c.Lock() defer c.Unlock() C.gio_clearCurrentContext() - C.gio_clearGLContext(c.view) - c.ctx = 0 } func (c *context) Present() error { diff --git a/ui/app/gl_macos.h b/ui/app/gl_macos.h index a396fdb4..f41c0cbc 100644 --- a/ui/app/gl_macos.h +++ b/ui/app/gl_macos.h @@ -2,7 +2,6 @@ __attribute__ ((visibility ("hidden"))) CFTypeRef gio_createGLView(void); __attribute__ ((visibility ("hidden"))) CFTypeRef gio_contextForView(CFTypeRef viewRef); -__attribute__ ((visibility ("hidden"))) void gio_clearGLContext(CFTypeRef viewRef); __attribute__ ((visibility ("hidden"))) void gio_makeCurrentContext(CFTypeRef ctx); __attribute__ ((visibility ("hidden"))) void gio_flushContextBuffer(CFTypeRef ctx); __attribute__ ((visibility ("hidden"))) void gio_clearCurrentContext(void); diff --git a/ui/app/gl_macos.m b/ui/app/gl_macos.m index 4741a45d..fa317191 100644 --- a/ui/app/gl_macos.m +++ b/ui/app/gl_macos.m @@ -143,11 +143,6 @@ CFTypeRef gio_contextForView(CFTypeRef viewRef) { return (__bridge CFTypeRef)view.openGLContext; } -void gio_clearGLContext(CFTypeRef viewRef) { - NSOpenGLView *view = (__bridge NSOpenGLView *)viewRef; - [view clearGLContext]; -} - void gio_clearCurrentContext(void) { [NSOpenGLContext clearCurrentContext]; }