summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Manzur <ariel@godotengine.org>2016-06-05 22:25:01 -0300
committerAriel Manzur <ariel@godotengine.org>2016-06-05 22:25:01 -0300
commit942de803f94148f10562476a58baa4495cbb73f5 (patch)
tree0e5de5b4fac0a5fdb4043c0da92465c300bf26b6
parent2420e46b449f4c8acdfe48c765ea52fc3e860de7 (diff)
temporary fix for vsync call on x11
-rw-r--r--platform/x11/context_gl_x11.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/x11/context_gl_x11.cpp b/platform/x11/context_gl_x11.cpp
index 442adb5d88..4e00dbf0a8 100644
--- a/platform/x11/context_gl_x11.cpp
+++ b/platform/x11/context_gl_x11.cpp
@@ -34,7 +34,9 @@
#include <unistd.h>
#include <stdlib.h>
+#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
+#include <GL/glxext.h>
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
@@ -178,12 +180,13 @@ int ContextGL_X11::get_window_height() {
void ContextGL_X11::set_use_vsync(bool p_use) {
GLXDrawable drawable = glXGetCurrentDrawable();
- glXSwapIntervalEXT(x11_display, drawable, p_use?1:0);
+ //GLXSwapIntervalEXT(x11_display, drawable, p_use?1:0);
use_vsync=p_use;
}
bool ContextGL_X11::is_using_vsync() const {
- return use_vsync;
+ return false;
+ //return use_vsync;
}