Commit 28d4e550 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

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."
parent 22e31ba8
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment