From: havoc Date: Mon, 4 Jul 2005 10:10:38 +0000 (+0000) Subject: fix problems with missing cubemap textures in GLSL X-Git-Tag: xonotic-v0.1.0preview~4696 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=953b5703b6b003beb3818593d86ed8784915780d fix problems with missing cubemap textures in GLSL git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5490 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 08a69c5b..fe2e6af3 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -3130,6 +3130,8 @@ rtexture_t *R_Shadow_Cubemap(const char *basename) numcubemaps++; strcpy(cubemaps[i].basename, basename); cubemaps[i].texture = R_Shadow_LoadCubemap(cubemaps[i].basename); + if (!cubemaps[i].texture) + cubemaps[i].texture = r_texture_whitecube; return cubemaps[i].texture; }