]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix uninitialized variables
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Oct 2007 06:42:27 +0000 (06:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Oct 2007 06:42:27 +0000 (06:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7602 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 989eace02e4832d66d9941ea42507bcd95a7aeb5..da1bd813df1c7fb12b6f90f81dc3f5bf4dfe1110 100644 (file)
@@ -2447,7 +2447,7 @@ static void R_Water_StartFrame(void)
 
        // calculate desired texture sizes
        // can't use water if the card does not support the texture size
-       if (!r_glsl_water.integer || texturewidth > gl_max_texture_size || textureheight > gl_max_texture_size)
+       if (!r_glsl_water.integer || waterwidth > gl_max_texture_size || waterheight > gl_max_texture_size)
                texturewidth = textureheight = waterwidth = waterheight = 0;
        else if (gl_support_arb_texture_non_power_of_two)
        {