Fix renderer not clearing some GL extension variables at vid_restart
If renderer is compiled into client (USE_RENDERER_DLOPEN=0) and after start up set r_allowExtension to 0 and run vid_restart, some extension were still used.
This commit is contained in:
1 parent
c74b9a4452
commit
bead4aa8c7
3 files changed
+16
No files matched your search
@@ -1291,6 +1291,10 @@ void RE_Shutdown( qboolean destroyWindow ) {
|
|||||||
GLimp_Shutdown();
|
GLimp_Shutdown();
|
||||||
|
|
||||||
Com_Memset( &glConfig, 0, sizeof( glConfig ) );
|
Com_Memset( &glConfig, 0, sizeof( glConfig ) );
|
||||||
|
textureFilterAnisotropic = qfalse;
|
||||||
|
maxAnisotropy = 0;
|
||||||
|
displayAspect = 0.0f;
|
||||||
|
|
||||||
Com_Memset( &glState, 0, sizeof( glState ) );
|
Com_Memset( &glState, 0, sizeof( glState ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1528,6 +1528,11 @@ void RE_Shutdown( qboolean destroyWindow ) {
|
|||||||
GLimp_Shutdown();
|
GLimp_Shutdown();
|
||||||
|
|
||||||
Com_Memset( &glConfig, 0, sizeof( glConfig ) );
|
Com_Memset( &glConfig, 0, sizeof( glConfig ) );
|
||||||
|
Com_Memset( &glRefConfig, 0, sizeof( glRefConfig ) );
|
||||||
|
textureFilterAnisotropic = qfalse;
|
||||||
|
maxAnisotropy = 0;
|
||||||
|
displayAspect = 0.0f;
|
||||||
|
|
||||||
Com_Memset( &glState, 0, sizeof( glState ) );
|
Com_Memset( &glState, 0, sizeof( glState ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -308,6 +308,13 @@ static void GLimp_ClearProcAddresses( void ) {
|
|||||||
QGL_ES_1_1_PROCS;
|
QGL_ES_1_1_PROCS;
|
||||||
QGL_3_0_PROCS;
|
QGL_3_0_PROCS;
|
||||||
|
|
||||||
|
qglActiveTextureARB = NULL;
|
||||||
|
qglClientActiveTextureARB = NULL;
|
||||||
|
qglMultiTexCoord2fARB = NULL;
|
||||||
|
|
||||||
|
qglLockArraysEXT = NULL;
|
||||||
|
qglUnlockArraysEXT = NULL;
|
||||||
|
|
||||||
#undef GLE
|
#undef GLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user