summaryrefslogtreecommitdiff
path: root/dgl/src/pugl
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2015-04-18 21:13:56 +0200
committerfalkTX <falktx@gmail.com>2015-04-18 21:13:56 +0200
commitb1353c55a63c5755c660236d1ea10b96551535d1 (patch)
treec4830e1bbcd14a0f2280ae88e7f1b9ef544a505b /dgl/src/pugl
parent4dbfbb043e7a33fc0feb67d1db2b35ab86933233 (diff)
Fix puglLeaveContext on linux
Diffstat (limited to 'dgl/src/pugl')
-rw-r--r--dgl/src/pugl/pugl_x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dgl/src/pugl/pugl_x11.c b/dgl/src/pugl/pugl_x11.c
index 74c5a29d..eb3ed566 100644
--- a/dgl/src/pugl/pugl_x11.c
+++ b/dgl/src/pugl/pugl_x11.c
@@ -356,6 +356,8 @@ puglReshape(PuglView* view, int width, int height)
puglDefaultReshape(view, width, height);
}
+ puglLeaveContext(view, false);
+
view->width = width;
view->height = height;
}
@@ -371,7 +373,7 @@ puglDisplay(PuglView* view)
view->displayFunc(view);
}
- puglLeaveContext(view);
+ puglLeaveContext(view, true);
}
static PuglKey