commit efbd38a12119073f4b3fecea883cc2f11c298529 parent b1353c55a63c5755c660236d1ea10b96551535d1 Author: falkTX <falktx@gmail.com> Date: Sat, 18 Apr 2015 20:24:26 +0100 OSX context fix, really Diffstat:
M | dgl/src/pugl/pugl_osx.m | | | 15 | ++++++--------- |
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m @@ -438,16 +438,13 @@ void puglLeaveContext(PuglView* view, bool flush) { #ifdef PUGL_HAVE_GL - if (view->ctx_type == PUGL_GL) { - if (flush) { - if (view->impl->glview->doubleBuffered) { - [[view->impl->glview openGLContext] flushBuffer]; - } else { - glFlush(); - } + if (view->ctx_type == PUGL_GL && flush) { + if (view->impl->glview->doubleBuffered) { + [[view->impl->glview openGLContext] flushBuffer]; + } else { + glFlush(); } - - [NSOpenGLContext clearCurrentContext]; + //[NSOpenGLContext clearCurrentContext]; } #endif }