]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_3dfxsvga.c
very minor cruft removal
[xonotic/darkplaces.git] / vid_3dfxsvga.c
index 74065d4f9a7cfa63556f9a6191ced53db52c3f28..7be5d671f19f2c3026c1a429fa2cbcebc54cca18 100644 (file)
@@ -66,13 +66,6 @@ int  VID_options_items = 0;
 
 /*-----------------------------------------------------------------------*/
 
-//int  texture_mode = GL_NEAREST;
-//int  texture_mode = GL_NEAREST_MIPMAP_NEAREST;
-//int  texture_mode = GL_NEAREST_MIPMAP_LINEAR;
-int    texture_mode = GL_LINEAR;
-//int  texture_mode = GL_LINEAR_MIPMAP_NEAREST;
-//int  texture_mode = GL_LINEAR_MIPMAP_LINEAR;
-
 int    texture_extension_number = 1;
 
 float          gldepthmin, gldepthmax;
@@ -269,6 +262,8 @@ void GL_BeginRendering (int *x, int *y, int *width, int *height)
 
 void GL_EndRendering (void)
 {
+       if (!r_render.value)
+               return;
        glFlush();
        fxMesaSwapBuffers();
 }