summaryrefslogtreecommitdiffstats
path: root/opengl.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-03-17 23:25:34 +0800
committerRichard Grenville <[email protected]>2014-03-17 23:25:34 +0800
commit15bde6a8f5c4dfa13da4444e25239a9de102fe0c (patch)
treeb3c8ec6c9c6fc3c9ca685c5f467af467a18165b4 /opengl.h
parent53d0c5c015d438172957a1ca0f31e1fb6fa9b150 (diff)
downloadtdebase-15bde6a8f5c4dfa13da4444e25239a9de102fe0c.tar.gz
tdebase-15bde6a8f5c4dfa13da4444e25239a9de102fe0c.zip
Bug fix #181: Add --xrender-sync{,-fence}
- Add --xrender-sync{,-fence} to deal with redraw lag issue on GLX backend. --xrender-sync-fence requires a sufficiently new xorg-server and libXext. NO_XSYNC=1 may be used to disable it at compile time. Thanks to tchebb for reporting and everybody else for testing. (#181) - A bit code clean-up. Replace a few XSync() with XFlush() to minimize the latency.
Diffstat (limited to 'opengl.h')
-rw-r--r--opengl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl.h b/opengl.h
index 564b7e20a..8628e36d3 100644
--- a/opengl.h
+++ b/opengl.h
@@ -59,6 +59,8 @@ glx_check_err_(session_t *ps, const char *func, int line) {
}
#define glx_check_err(ps) glx_check_err_(ps, __func__, __LINE__)
+#else
+#define glx_check_err(ps) ((void) 0)
#endif
/**