Sprite::setTexture, programType >= ProgramType::HSV needs update by user manually.

This commit is contained in:
halx99 2020-10-27 11:14:36 +08:00
parent 8a8d96e8d4
commit a2fcdb67a1
1 changed files with 1 additions and 1 deletions

View File

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