mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5576 from ricardoquesada/perf_improvement_in_quad_command
little performance improvement in quad command
This commit is contained in:
commit
e0030d35b2
|
@ -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);
|
||||
|
|
|
@ -104,8 +104,7 @@ void QuadCommand::generateMaterialID()
|
|||
void QuadCommand::useMaterial() const
|
||||
{
|
||||
_shader->use();
|
||||
|
||||
_shader->setUniformsForBuiltins();
|
||||
_shader->setUniformsForBuiltins(_mv);
|
||||
|
||||
//Set texture
|
||||
GL::bindTexture2D(_textureID);
|
||||
|
|
Loading…
Reference in New Issue