From 41a92be8b2dafff77e8d0974afa43139d7b9b9e3 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 12 Nov 2008 12:05:29 +0000 Subject: [PATCH] Defined GL_BGRA_EXT so morphos and macosx crosscompilers can do the OpenGL targets again git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3058 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/glsupp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/gl/glsupp.h b/engine/gl/glsupp.h index bfa09be92..a8b59d253 100644 --- a/engine/gl/glsupp.h +++ b/engine/gl/glsupp.h @@ -32,6 +32,17 @@ extern qlpMTex2FUNC qglMultiTexCoord2fARB; #define GL_CLAMP_TO_EDGE 0x812F //#endif +// Added to make morphos and mingw32 crosscompilers to work +/* +./gl/gl_draw.c: In function `GL_Upload32_BGRA': +./gl/gl_draw.c:3251: error: `GL_BGRA_EXT' undeclared (first use in this function) +./gl/gl_draw.c:3251: error: (Each undeclared identifier is reported only once +./gl/gl_draw.c:3251: error: for each function it appears in.) +*/ +#ifndef GL_EXT_bgra +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 +#endif #ifndef GL_ARB_multitexture #define GL_ARB_multitexture 1