From 3848b7dde9385fa00e247206d7c0a7ea2f78682f Mon Sep 17 00:00:00 2001 From: Rye Date: Tue, 14 Oct 2025 07:45:29 -0400 Subject: Fix build errors due to opengl headers and various defines Signed-off-by: Rye --- indra/llrender/llglheaders.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'indra/llrender/llglheaders.h') diff --git a/indra/llrender/llglheaders.h b/indra/llrender/llglheaders.h index 3d4dc5e698..ad31921c05 100644 --- a/indra/llrender/llglheaders.h +++ b/indra/llrender/llglheaders.h @@ -41,6 +41,22 @@ # include "GL/glh_extensions.h" # undef __APPLE__ +#elif LL_LINUX +#define GL_GLEXT_PROTOTYPES +#define GLX_GLEXT_PROTOTYPES + +#include "GL/gl.h" +#include "GL/glext.h" + +// The __APPLE__ kludge is to make glh_extensions.h not symbol-clash horribly +# define __APPLE__ +# include "GL/glh_extensions.h" +# undef __APPLE__ + +# include "GL/glx.h" +# include "GL/glxext.h" + + #elif LL_WINDOWS //---------------------------------------------------------------------------- // LL_WINDOWS -- cgit v1.3