summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2015-01-11 10:47:19 +0800
committerSlávek Banko <slavek.banko@axis.cz>2015-01-24 16:20:22 +0100
commitebac4aa56b811871117a68e4bf357c47ccde7d34 (patch)
treede96a7a5bc32c315e183a5efd8d0a4e75627bdb7 /twin
parent7034296d83ef1a328f5e90ea65c0d77453b6a707 (diff)
downloadtdebase-ebac4aa56b811871117a68e4bf357c47ccde7d34.tar.gz
tdebase-ebac4aa56b811871117a68e4bf357c47ccde7d34.zip
Bug fix: Compilation failure with NO_VSYNC_OPENGL=1
Fix compilation failure with NO_VSYNC_OPENGL=1, caused by one incorrectly placed "#endif" in "src/common.h". (cherry picked from commit 65bc49312cf8e75bf5ae3290eef40a2ebe712e9c)
Diffstat (limited to 'twin')
-rw-r--r--twin/compton-tde/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/twin/compton-tde/common.h b/twin/compton-tde/common.h
index 9ff5a2148..bcc2ad68b 100644
--- a/twin/compton-tde/common.h
+++ b/twin/compton-tde/common.h
@@ -142,8 +142,9 @@
#include <dbus/dbus.h>
#endif
-// libGL
#ifdef CONFIG_VSYNC_OPENGL
+
+// libGL
#if defined(CONFIG_VSYNC_OPENGL_GLSL) || defined(CONFIG_VSYNC_OPENGL_FBO)
#define GL_GLEXT_PROTOTYPES
#endif
@@ -160,6 +161,8 @@
#define GLX_BACK_BUFFER_AGE_EXT 0x20F4
#endif
+#endif
+
// === Macros ===
#define MSTR_(s) #s
@@ -2602,8 +2605,6 @@ c2_matchd(session_t *ps, win *w, const c2_lptr_t *condlst,
///@}
-#endif
-
/**
* @brief Dump the given data to a file.
*/