aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-12 13:00:18 -0400
committerDavid Robillard <d@drobilla.net>2015-09-12 13:00:18 -0400
commitdc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995 (patch)
treeb33be7b8ec6a2dcd8479620b9eebdfaf3b141a05 /pugl/pugl_x11.c
parent2c72fa23e3aad2dc54a65bf3c9635eafa9c8786e (diff)
downloadpugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.tar.gz
pugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.tar.bz2
pugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.zip
Fix destruction of cairo context.
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
}