From: Steinar H. Gunderson Date: Tue, 15 Dec 2015 23:31:40 +0000 (+0100) Subject: Switch to memory barriers, now that Mesa 11.1 has them (ATI always had problems with... X-Git-Tag: 1.0.0~82 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=ab30e757e8a5f39acae77e833e168d732ae37073 Switch to memory barriers, now that Mesa 11.1 has them (ATI always had problems with flushing). --- diff --git a/mixer.cpp b/mixer.cpp index 384047a..f28ea37 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -388,10 +388,8 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode, check_error(); glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB, pbo); check_error(); - glFlushMappedBufferRange(GL_PIXEL_UNPACK_BUFFER, 0, video_frame.size); + glMemoryBarrier(GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT); check_error(); - //glMemoryBarrier(GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT); - //check_error(); glBindTexture(GL_TEXTURE_2D, userdata->tex_cbcr[field]); check_error();