mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 12:53:09 +00:00
Get rid of glConfig.wgl_extensions_string
Unused and nobody cares.
This commit is contained in:
parent
30d5cb16d0
commit
bf922dfc59
4 changed files with 1 additions and 12 deletions
|
@ -49,7 +49,6 @@ typedef struct glconfig_s {
|
||||||
const char *vendor_string;
|
const char *vendor_string;
|
||||||
const char *version_string;
|
const char *version_string;
|
||||||
const char *extensions_string;
|
const char *extensions_string;
|
||||||
const char *wgl_extensions_string;
|
|
||||||
|
|
||||||
float glVersion; // atof( version_string )
|
float glVersion; // atof( version_string )
|
||||||
|
|
||||||
|
|
|
@ -1677,9 +1677,6 @@ static void GfxInfo_f( const idCmdArgs &args ) {
|
||||||
common->Printf( "GL_RENDERER: %s\n", glConfig.renderer_string );
|
common->Printf( "GL_RENDERER: %s\n", glConfig.renderer_string );
|
||||||
common->Printf( "GL_VERSION: %s\n", glConfig.version_string );
|
common->Printf( "GL_VERSION: %s\n", glConfig.version_string );
|
||||||
common->Printf( "GL_EXTENSIONS: %s\n", glConfig.extensions_string );
|
common->Printf( "GL_EXTENSIONS: %s\n", glConfig.extensions_string );
|
||||||
if ( glConfig.wgl_extensions_string ) {
|
|
||||||
common->Printf( "WGL_EXTENSIONS: %s\n", glConfig.wgl_extensions_string );
|
|
||||||
}
|
|
||||||
common->Printf( "GL_MAX_TEXTURE_SIZE: %d\n", glConfig.maxTextureSize );
|
common->Printf( "GL_MAX_TEXTURE_SIZE: %d\n", glConfig.maxTextureSize );
|
||||||
common->Printf( "GL_MAX_TEXTURE_UNITS_ARB: %d\n", glConfig.maxTextureUnits );
|
common->Printf( "GL_MAX_TEXTURE_UNITS_ARB: %d\n", glConfig.maxTextureUnits );
|
||||||
common->Printf( "GL_MAX_TEXTURE_COORDS_ARB: %d\n", glConfig.maxTextureCoords );
|
common->Printf( "GL_MAX_TEXTURE_COORDS_ARB: %d\n", glConfig.maxTextureCoords );
|
||||||
|
|
|
@ -865,7 +865,7 @@ void RB_DrawView( const void *data ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip render context sets the wgl context to NULL,
|
// skip render context sets the gl context to NULL,
|
||||||
// which should factor out the API cost, under the assumption
|
// which should factor out the API cost, under the assumption
|
||||||
// that all gl calls just return if the context isn't valid
|
// that all gl calls just return if the context isn't valid
|
||||||
if ( r_skipRenderContext.GetBool() && backEnd.viewDef->viewEntitys ) {
|
if ( r_skipRenderContext.GetBool() && backEnd.viewDef->viewEntitys ) {
|
||||||
|
|
|
@ -161,14 +161,7 @@ bool GLimp_Init(glimpParms_t parms) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
glConfig.wgl_extensions_string = "";
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)GLimp_ExtensionPointer("wglGetExtensionsStringARB");
|
|
||||||
|
|
||||||
if (wglGetExtensionsStringARB)
|
|
||||||
glConfig.wgl_extensions_string = (const char *)wglGetExtensionsStringARB(wglGetCurrentDC());
|
|
||||||
|
|
||||||
// the editors still rely on these vars
|
// the editors still rely on these vars
|
||||||
SDL_SysWMinfo info;
|
SDL_SysWMinfo info;
|
||||||
SDL_VERSION(&info.version);
|
SDL_VERSION(&info.version);
|
||||||
|
|
Loading…
Reference in a new issue