diff options
author | wm4 <wm4@nowhere> | 2016-11-07 22:49:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-07 22:49:16 +0100 |
commit | de72cb2c33aec91d50640ee211a7f95629143317 (patch) | |
tree | 0d61b5626a59e1ffc07d4b647f8e55cc1caf645a /video/out/opengl/video.c | |
parent | 4914e688cf501b5f29b507b57e686b84314ccadc (diff) | |
download | mpv-de72cb2c33aec91d50640ee211a7f95629143317.tar.bz2 mpv-de72cb2c33aec91d50640ee211a7f95629143317.tar.xz |
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.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r-- | video/out/opengl/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 } } |