From: Steinar H. Gunderson Date: Sat, 2 Apr 2016 20:42:30 +0000 (+0200) Subject: Revert back to glFlushMappedBufferRange; buggy on ATI or not, glMemoryBarrier is... X-Git-Tag: 1.2.0~25 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ea58f9b85acaacdcaf9fc6ddc9ec3b8a0ea37a12;p=nageru Revert back to glFlushMappedBufferRange; buggy on ATI or not, glMemoryBarrier is only for changes from the server to the client, not the only way around. --- diff --git a/mixer.cpp b/mixer.cpp index 84335aa..2669ad9 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -532,7 +532,7 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode, check_error(); glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB, pbo); check_error(); - glMemoryBarrier(GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT); + glFlushMappedBufferRange(GL_PIXEL_UNPACK_BUFFER, 0, video_frame.size); check_error(); glBindTexture(GL_TEXTURE_2D, userdata->tex_cbcr[field]);