mirror of https://github.com/axmolengine/axmol.git
Sprite::setTexture, programType >= ProgramType::HSV needs update by user manually.
This commit is contained in:
parent
8a8d96e8d4
commit
a2fcdb67a1
|
@ -436,7 +436,7 @@ void Sprite::setTexture(Texture2D *texture)
|
|||
updateBlendFunc();
|
||||
}
|
||||
|
||||
if(_programState == nullptr || _programState->getProgram()->getProgramType() == backend::ProgramType::POSITION_TEXTURE_COLOR)
|
||||
if(_programState == nullptr || _programState->getProgram()->getProgramType() < backend::ProgramType::HSV)
|
||||
setProgramState(backend::ProgramType::POSITION_TEXTURE_COLOR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue