mirror of https://github.com/axmolengine/axmol.git
add use glprogram before setting uniform data for meshcommand
This commit is contained in:
parent
cddad40ec0
commit
a8c321fe64
|
@ -155,6 +155,7 @@ void MeshCommand::execute()
|
|||
auto uniform = glProgram->getUniform("u_matrixPalette");
|
||||
if (uniform)
|
||||
{
|
||||
glProgram->use();
|
||||
glProgram->setUniformLocationWith4fv(uniform->location, (const float*)_matrixPalette, _matrixPaletteSize);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue