summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2009-10-05 20:31:48 +0800
committerSam Spilsbury <smspillaz@gmail.com>2009-10-05 20:31:48 +0800
commit458d48afc40af80b38e1351d1f38c40668c694c0 (patch)
tree7412e8a87c71826872cd50bf53e0dbab4c01a9e9
parentf1242a32b5790880bd0a4c4b45cd9fe808f36a35 (diff)
downloadworkarounds-458d48afc40af80b38e1351d1f38c40668c694c0.tar.gz
workarounds-458d48afc40af80b38e1351d1f38c40668c694c0.tar.bz2
Replace function pointers at screen fini
-rw-r--r--src/workarounds.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/workarounds.cpp b/src/workarounds.cpp
index ca83673..54db4d7 100644
--- a/src/workarounds.cpp
+++ b/src/workarounds.cpp
@@ -681,7 +681,11 @@ WorkaroundsScreen::WorkaroundsScreen (CompScreen *screen) :
WorkaroundsScreen::~WorkaroundsScreen ()
{
if (haveOpenGL)
+ {
GL::copySubBuffer = origCopySubBuffer;
+ GL::getVideoSync = origGetVideoSync;
+ GL::waitVideoSync = origWaitVideoSync;
+ }
}
WorkaroundsWindow::WorkaroundsWindow (CompWindow *window) :