From: havoc Date: Mon, 1 Oct 2007 06:42:27 +0000 (+0000) Subject: fix uninitialized variables X-Git-Tag: xonotic-v0.1.0preview~2875 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f71d812f6856e191b3851395c36a9481b9b1a23;p=xonotic%2Fdarkplaces.git fix uninitialized variables git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7602 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 989eace0..da1bd813 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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) {