Ver código fonte

temporary fix for vsync call on x11

Ariel Manzur 9 anos atrás
pai
commit
942de803f9
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      platform/x11/context_gl_x11.cpp

+ 5 - 2
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;
 }