]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
implemented r_render and r_upload cvar options for CPU profiling (not hardware bound...
[xonotic/darkplaces.git] / vid_glx.c
index 6ac56f8b3a25e6b973006ae527a3ecc0345c226b..60355ddef3665562ee2fedbc6790ac93339af41d 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -622,6 +622,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);
 }