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.
This commit is contained in:
wm4
2016-11-07 22:49:16 +01:00
parent 4914e688cf
commit de72cb2c33
+1
View File
@@ -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
}
}