From de72cb2c33aec91d50640ee211a7f95629143317 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 7 Nov 2016 22:49:16 +0100 Subject: vo_opengl: fix redrawing with hardware decoding unmap_current_image() is called after rendering. This essentially invalidates the textures, so we can't assume that the image is still present. Also see PR #3773. --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 8afae2f062..90f194b230 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -961,6 +961,7 @@ static void unmap_current_image(struct gl_video *p) p->hwdec->driver->unmap(p->hwdec); memset(vimg->planes, 0, sizeof(vimg->planes)); vimg->hwdec_mapped = false; + vimg->id = 0; // needs to be mapped again } } -- cgit v1.2.3