From ab30e757e8a5f39acae77e833e168d732ae37073 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 16 Dec 2015 00:31:40 +0100 Subject: [PATCH] Switch to memory barriers, now that Mesa 11.1 has them (ATI always had problems with flushing). --- mixer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.39.2