]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 13 Oct 2010 20:48:01 +0000 (22:48 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10525 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=613f06b867cca45c2fc29aed93b82517d398abfe

gl_rmain.c

index 64f7f03f9e49df977ab1bdfd22b5adba13ce088e..3ed5e45f13e55db7e38ed5464262d591f781b55a 100644 (file)
@@ -7316,7 +7316,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)
@@ -7329,11 +7329,6 @@ static void R_View_SetFrustum(const int *scissor)
                fny = -1.0 + 2.0 * (scissor[1]              - r_refdef.view.viewport.y) / (double) (r_refdef.view.viewport.height);
                fpy = -1.0 + 2.0 * (scissor[1] + scissor[3] - r_refdef.view.viewport.y) / (double) (r_refdef.view.viewport.height);
        }
-       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);