]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
shut up a gcc warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2010 19:46:10 +0000 (19:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2010 19:46:10 +0000 (19:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10525 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 0c831f238a80554047358e4ab5a3525a67bc2e5d..c8d13467398a63a7bf6b8a511546d09c79b590b7 100644 (file)
@@ -8011,7 +8011,7 @@ static void R_DrawModelsAddWaterPlanes(void)
 static void R_View_SetFrustum(const int *scissor)
 {
        int i;
-       double fpx, fnx, fpy, fny;
+       double fpx = +1, fnx = -1, fpy = +1, fny = -1;
        vec3_t forward, left, up, origin, v;
 
        if(scissor)
@@ -8040,11 +8040,6 @@ static void R_View_SetFrustum(const int *scissor)
                                break;
                }
        }
-       else
-       {
-               fnx = fny = -1;
-               fpx = fpy = +1;
-       }
 
        // we can't trust r_refdef.view.forward and friends in reflected scenes
        Matrix4x4_ToVectors(&r_refdef.view.matrix, forward, left, up, origin);