Merge pull request #5576 from ricardoquesada/perf_improvement_in_quad_command

little performance improvement in quad command
This commit is contained in:
Ricardo Quesada 2014-03-05 18:50:54 -08:00
commit e0030d35b2
2 changed files with 2 additions and 3 deletions

View File

@ -349,7 +349,7 @@ bool GLProgram::updateUniformLocation(GLint location, const GLvoid* data, unsign
{
return false;
}
bool updated = true;
tHashUniformEntry *element = nullptr;
HASH_FIND_INT(_hashForUniforms, &location, element);

View File

@ -104,8 +104,7 @@ void QuadCommand::generateMaterialID()
void QuadCommand::useMaterial() const
{
_shader->use();
_shader->setUniformsForBuiltins();
_shader->setUniformsForBuiltins(_mv);
//Set texture
GL::bindTexture2D(_textureID);