From ddb0cabc04e2ff726e745db0bcc781dc6fa5107c Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 10 Nov 2007 22:22:28 +0000 Subject: [PATCH] Bugfix Mesa 6.1 The ICD interface does not export all functions, as it should, This change was spoken with Alesky about. it letting us getting closer getting quake3 working in ReactOS/Windows with mesa Waring we can not update to mesa 7.0x for the ICD are broken in mesa 7.0x. I Need investigate why or some with more opengl experiences should do that svn path=/trunk/; revision=30341 --- reactos/dll/3rdparty/mesa32/src/glapi/glapi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/dll/3rdparty/mesa32/src/glapi/glapi.c b/reactos/dll/3rdparty/mesa32/src/glapi/glapi.c index 5433b4b341e..e050d4d3048 100644 --- a/reactos/dll/3rdparty/mesa32/src/glapi/glapi.c +++ b/reactos/dll/3rdparty/mesa32/src/glapi/glapi.c @@ -877,6 +877,12 @@ _glapi_get_proc_address(const char *funcName) struct _glapi_function * entry; GLuint i; +/* + * ReactOS fix, the ICDs interface should export all wgl, gl and few other + * functions, some ICDs interface even export mgl functions + * so limit it to only gl is wrong + * + #ifdef MANGLE if (funcName[0] != 'm' || funcName[1] != 'g' || funcName[2] != 'l') return NULL; @@ -884,7 +890,7 @@ _glapi_get_proc_address(const char *funcName) if (funcName[0] != 'g' || funcName[1] != 'l') return NULL; #endif - +*/ /* search extension functions first */ for (i = 0; i < NumExtEntryPoints; i++) { if (strcmp(ExtEntryTable[i].name, funcName) == 0) {