]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
implemented r_render and r_upload cvar options for CPU profiling (not hardware bound...
[xonotic/darkplaces.git] / vid_wgl.c
index 374a7d815d9c5c18da740cc00645c7610570e9d6..28d1b4d37a7b29f7b695b2264c0273446b676d73 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -595,7 +595,7 @@ void GL_BeginRendering (int *x, int *y, int *width, int *height)
 
 void GL_EndRendering (void)
 {
-       if (!scr_skipupdate)
+       if (r_render.value && !scr_skipupdate)
                SwapBuffers(maindc);
 
 // handle the mouse state when windowed if that's changed