From 942de803f94148f10562476a58baa4495cbb73f5 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Sun, 5 Jun 2016 22:25:01 -0300 Subject: temporary fix for vsync call on x11 --- platform/x11/context_gl_x11.cpp | 7 +++++-- 1 file 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 #include +#define GLX_GLXEXT_PROTOTYPES #include +#include #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; } -- cgit v1.2.3