aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index da33063..a48edde 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -137,7 +137,8 @@ destroyContext(PuglView* view)
#endif
#ifdef PUGL_HAVE_CAIRO
if (view->ctx_type == PUGL_CAIRO) {
- glXDestroyContext(view->impl->display, view->impl->ctx);
+ cairo_destroy(view->impl->cr);
+ cairo_surface_destroy(view->impl->surface);
}
#endif
}