From 86232df5eeb0003ebd251f8a2371c3ffe0db5b08 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 26 Apr 2018 10:37:27 +0300 Subject: [PATCH] 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 --- src/textures/texture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textures/texture.cpp b/src/textures/texture.cpp index 637b921b46..997ac3708f 100644 --- a/src/textures/texture.cpp +++ b/src/textures/texture.cpp @@ -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);