From 6d09a9fbbf7053dabc0111c71b1cccbfd89f6e83 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Thu, 5 Mar 2009 11:55:47 +0000 Subject: [PATCH] -DBROKEN_GL Flag eingebaut --- Makefile | 2 +- src/refresh/opengl/gl_rmain.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dee81ec..c9ee09cb 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ CFLAGS_DEDICATED_SERVER += -DDEDICATED_ONLY -Werror # OpenGL refresher CFLAGS_OPENGL = $(CFLAGS_BASE) CFLAGS_OPENGL += -I/usr/include -I/usr/local/include -I/usr/X11R6/include -CFLAGS_OPENGL += -DOPENGL -fPIC +CFLAGS_OPENGL += -DOPENGL -DBROKEN_GL -fPIC # ---------- diff --git a/src/refresh/opengl/gl_rmain.c b/src/refresh/opengl/gl_rmain.c index b317e8dd..fcbc8737 100644 --- a/src/refresh/opengl/gl_rmain.c +++ b/src/refresh/opengl/gl_rmain.c @@ -1293,6 +1293,7 @@ int R_Init( void *hinstance, void *hWnd ) if ( strstr( gl_config.extensions_string, "GL_EXT_point_parameters" ) ) { +#ifndef BROKEN_GL if ( gl_ext_pointparameters->value ) { qglPointParameterfEXT = ( void (APIENTRY *)( GLenum, GLfloat ) ) qwglGetProcAddress( "glPointParameterfEXT" ); @@ -1303,6 +1304,9 @@ int R_Init( void *hinstance, void *hWnd ) { ri.Con_Printf( PRINT_ALL, "...ignoring GL_EXT_point_parameters\n" ); } +#else + ri.Con_Printf( PRINT_ALL, "...ignoring GL_EXT_point_parameters\n" ); +#endif } else { @@ -1350,6 +1354,7 @@ int R_Init( void *hinstance, void *hWnd ) if ( strstr( gl_config.extensions_string, "GL_ARB_multitexture" ) ) { +#ifndef BROKEN_GL if ( gl_ext_multitexture->value ) { ri.Con_Printf( PRINT_ALL, "...using GL_ARB_multitexture\n" ); @@ -1363,6 +1368,9 @@ int R_Init( void *hinstance, void *hWnd ) { ri.Con_Printf( PRINT_ALL, "...ignoring GL_ARB_multitexture\n" ); } +#else + ri.Con_Printf( PRINT_ALL, "...ignoring GL_ARB_multitexture\n" ); +#endif } else {