summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorsimon <none@none>2013-11-25 09:17:29 -0800
committersimon <none@none>2013-11-25 09:17:29 -0800
commit5756b7b3d05ce330e9877650ba6af04aaa4da49d (patch)
treea1668748b931f0b0a9bd2df80aa24b1c156e8f9e /indra/llrender
parentf1be57cd30489902e44d7843703a39987f379c69 (diff)
parent1ae4d45337b380213112183f153a631d4c3f3289 (diff)
Merge - doh!
Diffstat (limited to 'indra/llrender')
-rwxr-xr-xindra/llrender/llrender.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index 0ac30b4d63..b481cf7095 100755
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -2196,7 +2196,15 @@ void LLRender::texCoord2fv(const GLfloat* tc)
void LLRender::color4ub(const GLubyte& r, const GLubyte& g, const GLubyte& b, const GLubyte& a)
{
- mColorsp[mCount] = LLColor4U(r,g,b,a);
+ if (!LLGLSLShader::sCurBoundShaderPtr ||
+ LLGLSLShader::sCurBoundShaderPtr->mAttributeMask & LLVertexBuffer::MAP_COLOR)
+ {
+ mColorsp[mCount] = LLColor4U(r,g,b,a);
+ }
+ else
+ { //not using shaders or shader reads color from a uniform
+ diffuseColor4ub(r,g,b,a);
+ }
}
void LLRender::color4ubv(const GLubyte* c)
{