From 953b5703b6b003beb3818593d86ed8784915780d Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 4 Jul 2005 10:10:38 +0000 Subject: [PATCH] fix problems with missing cubemap textures in GLSL git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5490 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2