summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorAiraYumi <aira.youme@airanyumi.net>2024-03-30 06:59:21 -0400
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-01 10:43:59 +0300
commit4173fa1a9ef79c27d39d9ab9dbee46f109fbf510 (patch)
treeeb630ddd7706c265e418a3c8611061fae6ed61fc /indra/llrender
parentcc68803f24d231b89061d855f7bbfe99b99740b9 (diff)
linux build fix
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llglheaders.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/llrender/llglheaders.h b/indra/llrender/llglheaders.h
index b80680a3d2..c1238ac6b9 100644
--- a/indra/llrender/llglheaders.h
+++ b/indra/llrender/llglheaders.h
@@ -1029,6 +1029,25 @@ extern void glGetBufferPointervARB (GLenum, GLenum, GLvoid* *);
#include <OpenGL/gl.h>
+#elif LL_LINUX
+
+#define GL_GLEXT_PROTOTYPES
+#define GLX_GLEXT_PROTOTYPES
+
+#include "GL/gl.h"
+#include "GL/glu.h"
+#include "GL/glext.h"
+#include "GL/glx.h"
+
+// The __APPLE__ kludge is to make glh_extensions.h not symbol-clash horribly
+# define __APPLE__
+# include "GL/glh_extensions.h"
+# undef __APPLE__
+
+// #include <X11/Xlib.h>
+// #include <X11/Xutil.h>
+#include "GL/glh_extensions.h"
+
#endif // LL_MESA / LL_WINDOWS / LL_DARWIN
// Even when GL_ARB_depth_clamp is available in the driver, the (correct)