diff --git a/source/vid_common_gl.c b/source/vid_common_gl.c index a737bab..18e7040 100644 --- a/source/vid_common_gl.c +++ b/source/vid_common_gl.c @@ -90,7 +90,7 @@ int gl_mtex_enum = TEXTURE0_SGIS; qboolean gl_arb_mtex = false; qboolean gl_mtexable = false; -qboolean is8bit = false; +static qboolean is8bit = false; cvar_t *vid_use8bit; /*-----------------------------------------------------------------------*/ @@ -374,16 +374,13 @@ VID_Init8bitPalette (void) Con_Printf ("8-bit OpenGL extension: "); - if (COM_CheckParm ("-no8bit")) { - Con_Printf ("disabled.\n"); - return; - } #ifdef HAVE_DLOPEN if (!(dlhand = dlopen (NULL, RTLD_LAZY))) { Con_Printf ("unable to check.\n"); return; } #endif + if (vid_use8bit->int_val) { #ifdef HAVE_TDFXGL 3dfx_Init8bitPalette (); @@ -394,7 +391,10 @@ VID_Init8bitPalette (void) if (!is8bit) { Con_Printf ("not found.\n"); } + } else { + Con_Printf ("disabled.\n"); } + #ifdef HAVE_DLOPEN dlclose (dlhand); dlhand = NULL;