mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Replace the glCOlor4f by a glVertexAttribute4f on the color slot instead
This commit is contained in:
parent
f23df03ea9
commit
647abe5009
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue