From 30d147687f918942b97d63f5bff6527c4bff90a4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 14 Sep 2016 22:49:08 +0200 Subject: vo_opengl: fix OSD with icc-profile after previous commit This happened to break because the texture unit wasn't reset to 0, which some code expects. The OSD code in particular set the OSD texture on the wrong texture unit, with the result that OSD/OSC was not visible. --- video/out/opengl/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index c0bd07fb91..6c879fd535 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -1052,6 +1052,8 @@ void gl_sc_generate(struct gl_shader_cache *sc) for (int n = 0; n < sc->num_uniforms; n++) update_uniform(gl, entry, &sc->uniforms[n], n); + gl->ActiveTexture(GL_TEXTURE0); + sc->needs_reset = true; } -- cgit v1.2.3