From ce3b8d239c69a84a44a7df9629ed8df69328f632 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 17 Oct 2007 05:50:31 +0000 Subject: [PATCH] disable water rendering without r_glsl because the fallback path has been removed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7640 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 59523f55..cfeea649 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -2543,7 +2543,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_water.integer || waterwidth > gl_max_texture_size || waterheight > gl_max_texture_size) + if (!r_water.integer || !r_glsl.integer || !gl_support_fragment_shader || 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) { -- 2.39.2