Remove gl_cull cvar. Workaround for a speed issue/bug in a very early windows minigl.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-02-04 08:59:59 +00:00
parent 39115d98a7
commit 292807d653
2 changed files with 1 additions and 7 deletions

View file

@ -114,7 +114,6 @@ cvar_t *r_waterripple;
cvar_t *gl_affinemodels; cvar_t *gl_affinemodels;
cvar_t *gl_clear; cvar_t *gl_clear;
cvar_t *gl_cull;
cvar_t *gl_dlight_lightmap; cvar_t *gl_dlight_lightmap;
cvar_t *gl_dlight_polyblend; cvar_t *gl_dlight_polyblend;
cvar_t *gl_fb_models; cvar_t *gl_fb_models;
@ -1180,11 +1179,7 @@ R_SetupGL (void)
// //
// set drawing parms // set drawing parms
// //
if (gl_cull->int_val)
glEnable (GL_CULL_FACE); glEnable (GL_CULL_FACE);
else
glDisable (GL_CULL_FACE);
glDisable (GL_ALPHA_TEST); glDisable (GL_ALPHA_TEST);
glAlphaFunc (GL_GREATER, 0.5); glAlphaFunc (GL_GREATER, 0.5);
glEnable (GL_DEPTH_TEST); glEnable (GL_DEPTH_TEST);

View file

@ -227,7 +227,6 @@ R_Init_Cvars (void)
gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_ARCHIVE, "Makes texture rendering quality better if set to 1"); gl_affinemodels = Cvar_Get ("gl_affinemodels", "0", CVAR_ARCHIVE, "Makes texture rendering quality better if set to 1");
gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, "Set to 1 to make background black. Useful for removing HOM effect"); gl_clear = Cvar_Get ("gl_clear", "0", CVAR_NONE, "Set to 1 to make background black. Useful for removing HOM effect");
gl_cull = Cvar_Get ("gl_cull", "1", CVAR_ARCHIVE, "If set to 1, does not render things that do not need to be");
gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE, "Set to 1 for high quality dynamic lighting."); gl_dlight_lightmap = Cvar_Get ("gl_dlight_lightmap", "1", CVAR_ARCHIVE, "Set to 1 for high quality dynamic lighting.");
gl_dlight_polyblend = Cvar_Get ("gl_dlight_polyblend", "0", CVAR_ARCHIVE, "Set to 1 to use a dynamic light effect faster on GL"); gl_dlight_polyblend = Cvar_Get ("gl_dlight_polyblend", "0", CVAR_ARCHIVE, "Set to 1 to use a dynamic light effect faster on GL");
gl_dlight_smooth = Cvar_Get ("gl_dlight_smooth", "1", CVAR_ARCHIVE, "Smooth dynamic vertex lighting"); gl_dlight_smooth = Cvar_Get ("gl_dlight_smooth", "1", CVAR_ARCHIVE, "Smooth dynamic vertex lighting");