diff options
Diffstat (limited to 'dgl/src/pugl/pugl_osx.m')
-rw-r--r-- | dgl/src/pugl/pugl_osx.m | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m index 02c63012..82d68a0d 100644 --- a/dgl/src/pugl/pugl_osx.m +++ b/dgl/src/pugl/pugl_osx.m @@ -427,18 +427,13 @@ puglInitInternals() void puglEnterContext(PuglView* view) { -#ifdef PUGL_HAVE_GL - if (view->ctx_type == PUGL_GL) { - [[view->impl->glview openGLContext] makeCurrentContext]; - } -#endif + [[view->impl->glview openGLContext] makeCurrentContext]; } void puglLeaveContext(PuglView* view, bool flush) { -#ifdef PUGL_HAVE_GL - if (view->ctx_type == PUGL_GL && flush) { + if (flush) { if (view->impl->glview->doubleBuffered) { [[view->impl->glview openGLContext] flushBuffer]; } else { @@ -446,7 +441,6 @@ puglLeaveContext(PuglView* view, bool flush) } //[NSOpenGLContext clearCurrentContext]; } -#endif } int @@ -565,12 +559,3 @@ puglGetNativeWindow(PuglView* view) { return (PuglNativeWindow)view->impl->glview; } - -void* -puglGetContext(PuglView* view) -{ - return NULL; - - // unused - (void)view; -} |