From b1353c55a63c5755c660236d1ea10b96551535d1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Apr 2015 21:13:56 +0200 Subject: [PATCH] Fix puglLeaveContext on linux --- dgl/src/pugl/pugl_x11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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