changed r_speeds glFinish to only occur when set to 2, not 1 or 3
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 07:49:18 +0000 (07:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 07:49:18 +0000 (07:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8847 d7cf8633-e32d-0410-b094-e92efae38249

vid_agl.c
vid_glx.c
vid_sdl.c
vid_wgl.c

index 775e017..4b2e02b 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -222,7 +222,7 @@ void VID_Finish (void)
        if (r_render.integer)
        {
                CHECKGLERROR
-               if (r_speeds.integer || gl_finish.integer)
+               if (r_speeds.integer == 2 || gl_finish.integer)
                {
                        qglFinish();CHECKGLERROR
                }
index 433fb4e..d08bab4 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -700,7 +700,7 @@ void VID_Finish (void)
        if (r_render.integer)
        {
                CHECKGLERROR
-               if (r_speeds.integer || gl_finish.integer)
+               if (r_speeds.integer == 2 || gl_finish.integer)
                {
                        qglFinish();CHECKGLERROR
                }
index 342b7ac..5fd6230 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -801,7 +801,7 @@ void VID_Finish (void)
        if (r_render.integer && !vid_hidden)
        {
                CHECKGLERROR
-               if (r_speeds.integer || gl_finish.integer)
+               if (r_speeds.integer == 2 || gl_finish.integer)
                {
                        qglFinish();CHECKGLERROR
                }
index 298d566..c714e0e 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -254,7 +254,7 @@ void VID_Finish (void)
        if (r_render.integer && !vid_hidden)
        {
                CHECKGLERROR
-               if (r_speeds.integer || gl_finish.integer)
+               if (r_speeds.integer == 2 || gl_finish.integer)
                {
                        qglFinish();CHECKGLERROR
                }