mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 09:02:06 +00:00
Fix texture flat crash in VSL_FranticFreeze-v1.1.1.wad
This commit is contained in:
parent
639e19f987
commit
1a677a341f
1 changed files with 4 additions and 1 deletions
|
@ -1074,7 +1074,10 @@ static void HWR_CacheTextureAsFlat(GLMipmap_t *grMipmap, INT32 texturenum)
|
|||
grtex = &gr_textures[texturenum];
|
||||
|
||||
// Generate texture if missing from the cache
|
||||
if (!grtex->mipmap.grInfo.data && !grtex->mipmap.downloaded)
|
||||
// The texture CAN be downloaded but have no data,
|
||||
// which is perfectly fine when the GPU has it,
|
||||
// but not for this kind of conversion.
|
||||
if (!grtex->mipmap.grInfo.data)
|
||||
HWR_GenerateTexture(texturenum, grtex);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue