mirror of https://github.com/axmolengine/axmol.git
setGLProgramState should not modify state block
This commit is contained in:
parent
16d9cf1af9
commit
11f5e6cf96
|
@ -404,6 +404,8 @@ void Mesh::setGLProgramState(GLProgramState* glProgramState)
|
|||
{
|
||||
// XXX create dummy texture
|
||||
auto material = Material::createWithGLStateProgram(glProgramState);
|
||||
if (_material)
|
||||
material->setStateBlock(_material->getStateBlock());
|
||||
setMaterial(material);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue