mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-26 12:52:00 +00:00
-DBROKEN_GL Flag eingebaut
This commit is contained in:
parent
f789e1178b
commit
6d09a9fbbf
2 changed files with 9 additions and 1 deletions
2
Makefile
2
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
|
||||
|
||||
# ----------
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue