summaryrefslogtreecommitdiff
path: root/retrace
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-11-07 22:59:44 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-11-07 23:10:49 +0000
commit4839bda495aecb8ce78744faa69eb395c161a355 (patch)
treed77f96cfae6450b1cfa29e1e5001b0a9b985943a /retrace
parent638ec448619fda80fcb439b1747af62169d05548 (diff)
glws: Fix GLX PBuffer destruction.
Diffstat (limited to 'retrace')
-rw-r--r--retrace/glws_glx.cpp6
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