Fix UI backgrounds vanishing when toggling basic shaders on and off.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user