Fixed rendering of walls and flats

With high resolution textures enabled (gl_texture_usehires CVAR set to true) and without hires textures loaded walls and flats were black
This commit is contained in:
alexey.lysiuk 2018-04-26 10:37:27 +03:00
parent 6e58f72329
commit 86232df5ee

View file

@ -1373,7 +1373,9 @@ unsigned char * FTexture::CreateTexBuffer(int translation, int & w, int & h, int
if ((flags & CTF_CheckHires) && translation != STRange_AlphaTexture)
{
return LoadHiresTexture(&w, &h);
buffer = LoadHiresTexture(&w, &h);
if (buffer != nullptr)
return buffer;
}
int exx = !!(flags & CTF_Expand);