mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
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:
parent
6e58f72329
commit
86232df5ee
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue