浏览代码

Fixed x11 opengl3 demo

vurtun 9 年之前
父节点
当前提交
a4eda78f3f
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      demo/x11_opengl3/nuklear_xlib_gl3.h

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