Browse Source

Fixed x11 opengl3 demo

vurtun 9 năm trước cách đây
mục cha
commit
a4eda78f3f

+ 3 - 2
demo/x11_opengl3/nuklear_xlib_gl3.h

@@ -42,7 +42,7 @@ NK_API void                 nk_x11_device_destroy(void);
 #include <X11/Xlocale.h>
 #include <X11/Xlocale.h>
 
 
 #include <GL/gl.h>
 #include <GL/gl.h>
-#include <GL/glext.h>
+#include <GL/glx.h>
 
 
 #ifndef FALSE
 #ifndef FALSE
 #define FALSE 0
 #define FALSE 0
@@ -52,6 +52,8 @@ NK_API void                 nk_x11_device_destroy(void);
 #endif
 #endif
 
 
 #ifdef NK_XLIB_LOAD_OPENGL_EXTENSIONS
 #ifdef NK_XLIB_LOAD_OPENGL_EXTENSIONS
+#include <GL/glxext.h>
+
 /* GL_ARB_vertex_buffer_object */
 /* GL_ARB_vertex_buffer_object */
 typedef void(*nkglGenBuffers)(GLsizei, GLuint*);
 typedef void(*nkglGenBuffers)(GLsizei, GLuint*);
 typedef void(*nkglBindBuffer)(GLenum, GLuint);
 typedef void(*nkglBindBuffer)(GLenum, GLuint);
@@ -190,7 +192,6 @@ static struct nk_x11 {
 
 
 #ifdef NK_XLIB_LOAD_OPENGL_EXTENSIONS
 #ifdef NK_XLIB_LOAD_OPENGL_EXTENSIONS
 #include <GL/glx.h>
 #include <GL/glx.h>
-#include <GL/glxext.h>
 
 
 NK_INTERN int
 NK_INTERN int
 nk_x11_stricmpn(const char *a, const char *b, int len)
 nk_x11_stricmpn(const char *a, const char *b, int len)