From dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Sep 2015 13:00:18 -0400 Subject: Fix destruction of cairo context. --- pugl/pugl_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pugl') 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 } -- cgit v1.2.1