[vlc-commits] opengl: add missing GL_MAP_FLUSH_EXPLICIT_BIT flag

Thomas Guillem git at videolan.org
Tue Mar 14 19:08:58 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 14 19:08:28 2017 +0100| [28d4e5504d859ae39c96d8bded9ed9d67feb7c00] | committer: Thomas Guillem

opengl: add missing GL_MAP_FLUSH_EXPLICIT_BIT flag

glFlushMappedBufferRange documentation:

"The buffer object must previously have been mapped with the
GL_MAP_FLUSH_EXPLICIT_BIT flag."

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28d4e5504d859ae39c96d8bded9ed9d67feb7c00
---

 modules/video_output/opengl/converters.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/converters.c b/modules/video_output/opengl/converters.c
index 5c5d5ea..212d360 100644
--- a/modules/video_output/opengl/converters.c
+++ b/modules/video_output/opengl/converters.c
@@ -672,7 +672,7 @@ persistent_map(const opengl_tex_converter_t *tc, picture_t *pic)
 
         pic->p[i].p_pixels =
             tc->api->MapBufferRange(GL_PIXEL_UNPACK_BUFFER, 0, picsys->bytes[i],
-                                    access);
+                                    access | GL_MAP_FLUSH_EXPLICIT_BIT);
 
         if (pic->p[i].p_pixels == NULL)
         {



More information about the vlc-commits mailing list