Restores GL check for tests in TextureManager forgotten in 283f524fcf.

Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4030
This was SVN commit r25595.
This commit is contained in:
vladislavbelov
2021-05-29 23:24:36 +00:00
parent 7f0c4ee9ab
commit a462970707
+4
View File
@@ -43,7 +43,11 @@ class SingleColorTexture
{
public:
SingleColorTexture(const CColor& color, PIVFS vfs, const VfsPath& pathPlaceholder, const bool disableGL, CTextureManagerImpl* textureManager)
: m_Handle(0)
{
if (disableGL)
return;
const SColor4ub color32 = color.AsSColor4ub();
// Construct 1x1 32-bit texture
std::shared_ptr<u8> data(new u8[4], ArrayDeleter());