-DBROKEN_GL durch ein CVar ersetzt

This commit is contained in:
Yamagi Burmeister 2010-05-22 06:58:09 +00:00
parent 289160c482
commit 95586850e4
2 changed files with 18 additions and 12 deletions

View File

@ -53,9 +53,6 @@ CFLAGS_BASE = -O2 -fomit-frame-pointer -fno-strict-aliasing \
-fstack-protector-all -Wall -pipe -g
endif
# Uncomment this if your Mesa3D is broken
CFLAGS_BASE += -DBROKEN_MESA
# OGG/Vorbis
OGGCFLAGS = -I/usr/include -I/usr/local/include

View File

@ -110,6 +110,8 @@ cvar_t *gl_mode;
cvar_t *gl_customwidth;
cvar_t *gl_customheight;
cvar_t *gl_ext_pointparameters_broken;
cvar_t *gl_dynamic;
cvar_t *gl_monolightmap;
cvar_t *gl_modulate;
@ -966,6 +968,8 @@ void R_Register( void )
gl_customwidth = ri.Cvar_Get ("gl_customwidth", "1024", CVAR_ARCHIVE);
gl_customheight = ri.Cvar_Get ("gl_customheight", "768", CVAR_ARCHIVE);
gl_ext_pointparameters_broken = ri.Cvar_Get ("gl_ext_pointparameters_broken", "0", CVAR_ARCHIVE);
ri.Cmd_AddCommand( "imagelist", GL_ImageList_f );
ri.Cmd_AddCommand( "screenshot", GL_ScreenShot_f );
ri.Cmd_AddCommand( "modellist", Mod_Modellist_f );
@ -1183,7 +1187,8 @@ int R_Init( void *hinstance, void *hWnd )
ri.Con_Printf( PRINT_ALL, "...GL_EXT_compiled_vertex_array not found\n" );
}
#ifndef BROKEN_MESA
if ( gl_ext_pointparameters_broken->value != 1 )
{
if ( strstr( gl_config.extensions_string, "GL_EXT_point_parameters" ) )
{
if ( gl_ext_pointparameters->value )
@ -1201,7 +1206,11 @@ int R_Init( void *hinstance, void *hWnd )
{
ri.Con_Printf( PRINT_ALL, "...GL_EXT_point_parameters not found\n" );
}
#endif
}
else
{
ri.Con_Printf( PRINT_ALL, "GL_EXT_point_parameters disabled\n" );
}
GL_SetDefaultState();