|
|
@ -422,15 +422,11 @@ GL_GetProcAddress |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
void *GL_GetProcAddress( const char *name ) |
|
|
|
void *GL_GetProcAddress( const char *name ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if defined( XASH_NANOGL ) |
|
|
|
|
|
|
|
void *func = nanoGL_GetProcAddress( name ); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
void *func = SDL_GL_GetProcAddress( name ); |
|
|
|
void *func = SDL_GL_GetProcAddress( name ); |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !func ) |
|
|
|
if( !func ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Con_Reportf( S_ERROR "Error: GL_GetProcAddress failed for %s\n", name ); |
|
|
|
Con_Reportf( S_ERROR "GL_GetProcAddress failed for %s\n", name ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return func; |
|
|
|
return func; |
|
|
|