summaryrefslogtreecommitdiff
path: root/dgl/src/pugl/pugl_osx.m
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/src/pugl/pugl_osx.m')
-rw-r--r--dgl/src/pugl/pugl_osx.m15
1 files changed, 8 insertions, 7 deletions
diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m
index b4d64be2..fb848791 100644
--- a/dgl/src/pugl/pugl_osx.m
+++ b/dgl/src/pugl/pugl_osx.m
@@ -441,13 +441,11 @@ 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];
}
@@ -575,4 +573,7 @@ void*
puglGetContext(PuglView* view)
{
return NULL;
+
+ // unused
+ (void)view;
}