From de3268494c4b378a07a042943734afac5c869878 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Tue, 6 Oct 2009 15:17:45 +0000 Subject: [PATCH] =?UTF-8?q?Einen=20Hack=20f=C3=BCr=20kaputte=20Mesa-Instal?= =?UTF-8?q?lationen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- README | 6 ++++++ src/refresh/gl_rmain.c | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c6177f5..964108f5 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,10 @@ endif # Optimizations # ~25% - 30% perfomance gain, but may not # work on all CPUs. Adjust to your needs -# CFLAFS_BASE += -mmmx -msse -msse2 -msse3 -m3dnow +# CFLAGS_BASE += -mmmx -msse -msse2 -msse3 -m3dnow + +# Uncomment this if your Mesa3D is broken +# CFLAGS_BASE += -DBROKEN_MESA # OGG/Vorbis OGGCFLAGS = -I/usr/include -I/usr/local/include diff --git a/README b/README index b02d3ca8..0650cfd8 100644 --- a/README +++ b/README @@ -250,4 +250,10 @@ When playing in window mode my is locked onto the window. Can I change that, e.g. that Quake II is behaving like a normal window? - Set "_windowed_mouse" to 0. +Hey, the game renders unplayable slow but my OpenGL is working?! + - If you're using Mesa 7.0, 7.1, 7.2 or 7.3 thats a known bug of + Mesa3D. It's fixed in 7.4 and above. Please update your Mesa3D. If + that's not possible, open the Makefile in your favorite editor, + uncomment line 64 and rebuild. + =============================================================================== diff --git a/src/refresh/gl_rmain.c b/src/refresh/gl_rmain.c index e2b599e4..1ebf8d9c 100644 --- a/src/refresh/gl_rmain.c +++ b/src/refresh/gl_rmain.c @@ -1168,6 +1168,7 @@ int R_Init( void *hinstance, void *hWnd ) ri.Con_Printf( PRINT_ALL, "...GL_EXT_compiled_vertex_array not found\n" ); } +#ifndef BROKEN_MESA if ( strstr( gl_config.extensions_string, "GL_EXT_point_parameters" ) ) { if ( gl_ext_pointparameters->value ) @@ -1185,6 +1186,7 @@ int R_Init( void *hinstance, void *hWnd ) { ri.Con_Printf( PRINT_ALL, "...GL_EXT_point_parameters not found\n" ); } +#endif GL_SetDefaultState();