mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +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