scene/itemrenderer_opengl: reset OpenGL state for YUV conversion back to RGB
Otherwise, effects or other OpenGL code that doesn't explicitly set those will get wrong results
This commit is contained in:
parent
8cf48dc6ec
commit
d12a93f9fb
1 changed files with 2 additions and 0 deletions
|
@ -405,6 +405,8 @@ void ItemRendererOpenGL::renderItem(const RenderTarget &renderTarget, const Rend
|
|||
}
|
||||
}
|
||||
if (shader) {
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
shader->setUniform("converter", 0);
|
||||
ShaderManager::instance()->popShader();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue