Don't purge shadows on reinit (r_purgeimages fix)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5641 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-02-29 19:29:01 +00:00
parent ec58c94e03
commit 99e9817dd8

View file

@ -1087,7 +1087,7 @@ qboolean GLBE_BeginShadowMap(int id, int w, int h, uploadfmt_t encoding, int *re
if (!gl_config.ext_framebuffer_objects)
return false;
if (!TEXVALID(shadowmap[id]) || shadowmap[id]->width != w || shadowmap[id]->height != h || shadowmap[id]->format != encoding)
if (!TEXVALID(shadowmap[id]) || shadowmap[id]->width != w || shadowmap[id]->height != h || shadowmap[id]->format != encoding || shadowmap[id]->status != TEX_LOADED)
{
texid_t tex;
if (shadowmap[id])