mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
Merge pull request #28 from alericoveri/qgl_cleanup
QGL renundancy cleanup
This commit is contained in:
commit
78b974d3ca
2 changed files with 19 additions and 21 deletions
|
@ -52,18 +52,26 @@ void ( APIENTRY *qglClientActiveTextureARB ) ( GLenum );
|
||||||
|
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
|
|
||||||
|
void QGL_EXT_Reset ( void )
|
||||||
|
{
|
||||||
|
qglLockArraysEXT = NULL;
|
||||||
|
qglUnlockArraysEXT = NULL;
|
||||||
|
qglPointParameterfEXT = NULL;
|
||||||
|
qglPointParameterfvEXT = NULL;
|
||||||
|
qglColorTableEXT = NULL;
|
||||||
|
qgl3DfxSetPaletteEXT = NULL;
|
||||||
|
qglMultiTexCoord2fARB = NULL;
|
||||||
|
qglActiveTextureARB = NULL;
|
||||||
|
qglClientActiveTextureARB = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ========================================================================= */
|
||||||
|
|
||||||
void
|
void
|
||||||
QGL_Shutdown ( void )
|
QGL_Shutdown ( void )
|
||||||
{
|
{
|
||||||
qglLockArraysEXT = NULL;
|
// Reset GL extension pointers
|
||||||
qglUnlockArraysEXT = NULL;
|
QGL_EXT_Reset();
|
||||||
qglPointParameterfEXT = NULL;
|
|
||||||
qglPointParameterfvEXT = NULL;
|
|
||||||
qglColorTableEXT = NULL;
|
|
||||||
qgl3DfxSetPaletteEXT = NULL;
|
|
||||||
qglMultiTexCoord2fARB = NULL;
|
|
||||||
qglActiveTextureARB = NULL;
|
|
||||||
qglClientActiveTextureARB = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
|
@ -71,15 +79,8 @@ QGL_Shutdown ( void )
|
||||||
qboolean
|
qboolean
|
||||||
QGL_Init (void)
|
QGL_Init (void)
|
||||||
{
|
{
|
||||||
qglLockArraysEXT = NULL;
|
// Reset GL extension pointers
|
||||||
qglUnlockArraysEXT = NULL;
|
QGL_EXT_Reset();
|
||||||
qglPointParameterfEXT = NULL;
|
|
||||||
qglPointParameterfvEXT = NULL;
|
|
||||||
qglColorTableEXT = NULL;
|
|
||||||
qgl3DfxSetPaletteEXT = NULL;
|
|
||||||
qglMultiTexCoord2fARB = NULL;
|
|
||||||
qglActiveTextureARB = NULL;
|
|
||||||
qglClientActiveTextureARB = NULL;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,9 +170,6 @@ VID_LoadRefresh(void)
|
||||||
// Log it!
|
// Log it!
|
||||||
Com_Printf("----- refresher initialization -----\n");
|
Com_Printf("----- refresher initialization -----\n");
|
||||||
|
|
||||||
// Get refresher API exports
|
|
||||||
//R_GetRefAPI();
|
|
||||||
|
|
||||||
/* Init IN (Mouse) */
|
/* Init IN (Mouse) */
|
||||||
in_state.IN_CenterView_fp = IN_CenterView;
|
in_state.IN_CenterView_fp = IN_CenterView;
|
||||||
in_state.Key_Event_fp = Do_Key_Event;
|
in_state.Key_Event_fp = Do_Key_Event;
|
||||||
|
|
Loading…
Reference in a new issue