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:
Xaver Hugl 2024-07-25 18:32:29 +02:00
parent 8cf48dc6ec
commit d12a93f9fb

View file

@ -405,6 +405,8 @@ void ItemRendererOpenGL::renderItem(const RenderTarget &renderTarget, const Rend
}
}
if (shader) {
glActiveTexture(GL_TEXTURE0);
shader->setUniform("converter", 0);
ShaderManager::instance()->popShader();
}