diff options
author | David Robillard <d@drobilla.net> | 2015-09-12 13:00:18 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-09-12 13:00:18 -0400 |
commit | dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995 (patch) | |
tree | b33be7b8ec6a2dcd8479620b9eebdfaf3b141a05 /pugl | |
parent | 2c72fa23e3aad2dc54a65bf3c9635eafa9c8786e (diff) | |
download | pugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.tar.gz pugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.tar.bz2 pugl-dc90b4f5d902218b4e1ccfa5a2b3c1a0b24a7995.zip |
Fix destruction of cairo context.
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/pugl_x11.c | 3 |
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 } |