Fix UI backgrounds vanishing when toggling basic shaders on and off.

This commit is contained in:
Shyotl
2019-07-17 20:20:41 -05:00
parent 94787c6da8
commit 3bc4d6fd63
3 changed files with 3 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ void APIENTRY gl_debug_callback(GLenum source,
{
if (id == 0x20004 || // Silence nvidia glClear noop messages
id == 0x20043 || // Silence nvidia CSAA messages.
id == 0x20084 // Silence nvidia textumre mapping with no base level messages.
id == 0x20084 // Silence nvidia texture mapping with no base level messages.
)
{
return;

View File

@@ -455,7 +455,7 @@ void LLTexUnit::unbind(eTextureType type)
{
gGL.flush();
mCurrTexture = 0;
if (LLGLSLShader::sNoFixedFunction && type == LLTexUnit::TT_TEXTURE)
if (/*LLGLSLShader::sNoFixedFunction && */type == LLTexUnit::TT_TEXTURE)
{
//if (sWhiteTexture)
// validate_bind_texture(sWhiteTexture);

View File

@@ -391,7 +391,7 @@ public:
Context() :
texUnit(0),
color{ 1.f,1.f,1.f,1.f },
colorMask{ true },
colorMask{ 0xf },
alphaFunc(CF_ALWAYS),
alphaVal(0.f),
blendColorSFactor(BF_ONE),