diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-11-07 22:59:44 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-11-07 23:10:49 +0000 |
commit | 4839bda495aecb8ce78744faa69eb395c161a355 (patch) | |
tree | d77f96cfae6450b1cfa29e1e5001b0a9b985943a /retrace | |
parent | 638ec448619fda80fcb439b1747af62169d05548 (diff) |
glws: Fix GLX PBuffer destruction.
Diffstat (limited to 'retrace')
-rw-r--r-- | retrace/glws_glx.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/retrace/glws_glx.cpp b/retrace/glws_glx.cpp index 449aa05e..daec4851 100644 --- a/retrace/glws_glx.cpp +++ b/retrace/glws_glx.cpp @@ -88,7 +88,11 @@ public: } ~GlxDrawable() { - XDestroyWindow(display, window); + if (pbuffer) { + glXDestroyPbuffer(display, window); + } else { + XDestroyWindow(display, window); + } } void |