From bf922dfc59e36cbd38b113495be10d577d528c2a Mon Sep 17 00:00:00 2001 From: dhewg Date: Thu, 19 Jul 2012 17:11:14 +0200 Subject: [PATCH] Get rid of glConfig.wgl_extensions_string Unused and nobody cares. --- neo/renderer/RenderSystem.h | 1 - neo/renderer/RenderSystem_init.cpp | 3 --- neo/renderer/tr_render.cpp | 2 +- neo/sys/glimp.cpp | 7 ------- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/neo/renderer/RenderSystem.h b/neo/renderer/RenderSystem.h index ef3a1835..253b9eb2 100644 --- a/neo/renderer/RenderSystem.h +++ b/neo/renderer/RenderSystem.h @@ -49,7 +49,6 @@ typedef struct glconfig_s { const char *vendor_string; const char *version_string; const char *extensions_string; - const char *wgl_extensions_string; float glVersion; // atof( version_string ) diff --git a/neo/renderer/RenderSystem_init.cpp b/neo/renderer/RenderSystem_init.cpp index bfa8fd8c..37ab31de 100644 --- a/neo/renderer/RenderSystem_init.cpp +++ b/neo/renderer/RenderSystem_init.cpp @@ -1677,9 +1677,6 @@ static void GfxInfo_f( const idCmdArgs &args ) { common->Printf( "GL_RENDERER: %s\n", glConfig.renderer_string ); common->Printf( "GL_VERSION: %s\n", glConfig.version_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_UNITS_ARB: %d\n", glConfig.maxTextureUnits ); common->Printf( "GL_MAX_TEXTURE_COORDS_ARB: %d\n", glConfig.maxTextureCoords ); diff --git a/neo/renderer/tr_render.cpp b/neo/renderer/tr_render.cpp index 7c02c874..92cbca03 100644 --- a/neo/renderer/tr_render.cpp +++ b/neo/renderer/tr_render.cpp @@ -865,7 +865,7 @@ void RB_DrawView( const void *data ) { 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 // that all gl calls just return if the context isn't valid if ( r_skipRenderContext.GetBool() && backEnd.viewDef->viewEntitys ) { diff --git a/neo/sys/glimp.cpp b/neo/sys/glimp.cpp index b678e167..56dee6d7 100644 --- a/neo/sys/glimp.cpp +++ b/neo/sys/glimp.cpp @@ -161,14 +161,7 @@ bool GLimp_Init(glimpParms_t parms) { return false; } - glConfig.wgl_extensions_string = ""; - #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 SDL_SysWMinfo info; SDL_VERSION(&info.version);