add use glprogram before setting uniform data for meshcommand

This commit is contained in:
Huabing.Xu 2014-06-11 11:34:04 +08:00
parent cddad40ec0
commit a8c321fe64
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}