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