From 647abe50098df020c293157f78113042b57b599d Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Mon, 3 Aug 2015 13:41:02 -0700 Subject: [PATCH] Replace the glCOlor4f by a glVertexAttribute4f on the color slot instead --- libraries/gpu/src/gpu/GLBackend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/gpu/src/gpu/GLBackend.cpp b/libraries/gpu/src/gpu/GLBackend.cpp index 32c7f6987d..e2dac0df72 100644 --- a/libraries/gpu/src/gpu/GLBackend.cpp +++ b/libraries/gpu/src/gpu/GLBackend.cpp @@ -488,7 +488,8 @@ void Batch::_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DO_IT_NOW(_glColor4f, 4); } void GLBackend::do_glColor4f(Batch& batch, uint32 paramOffset) { - glColor4f( + // TODO Replace this with a proper sticky Input attribute buffer with frequency 0 + glVertexAttrib4f( gpu::Stream::COLOR, batch._params[paramOffset + 3]._float, batch._params[paramOffset + 2]._float, batch._params[paramOffset + 1]._float,