mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user