]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
cruft removal, general cleanup, fix for delta compression bugs, generic targa writer
[xonotic/darkplaces.git] / vid_glx.c
index 6ac56f8b3a25e6b973006ae527a3ecc0345c226b..16e012ab16a410e11117551ca53af04a90ba1993 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -82,13 +82,6 @@ static qboolean vidmode_active = false;
 
 /*-----------------------------------------------------------------------*/
 
-//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;
@@ -622,6 +615,8 @@ void GL_BeginRendering (int *x, int *y, int *width, int *height)
 
 void GL_EndRendering (void)
 {
+       if (!r_render.value)
+               return;
        glFlush();
        glXSwapBuffers(dpy, win);
 }