Skip to content

Commit 835bea9

Browse files
author
wesgar3
committed
fixed compilation for linux
1 parent 776aa14 commit 835bea9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ext/gpupixel/core/gpupixel_macros.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
#endif
6868
#include <gl/GL.h>
6969
#elif defined(GPUPIXEL_LINUX)
70+
#include <GL/gl.h>
7071
#endif
7172

7273
#define NS_GPUPIXEL_BEGIN namespace gpupixel {
@@ -107,4 +108,4 @@
107108
}
108109
#else
109110
#define CHECK_GL(glFunc) glFunc;
110-
#endif
111+
#endif

ext/gpupixel/core/opengl3_loader.h

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ extern "C" {
106106
#define GLAPI extern
107107
#endif
108108

109+
#ifdef GPUPIXEL_LINUX
110+
#undef GL_VERSION_2_0
111+
#endif
112+
109113
#include <cassert>
110114
/* glcorearb.h is for use with OpenGL core profile implementations.
111115
** It should should be placed in the same directory as gl.h and

0 commit comments

Comments
 (0)