]> git.sesse.net Git - nageru/commitdiff
Switch to memory barriers, now that Mesa 11.1 has them (ATI always had problems with...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 15 Dec 2015 23:31:40 +0000 (00:31 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 15 Dec 2015 23:31:40 +0000 (00:31 +0100)
mixer.cpp

index 384047a6b63b2df30f056b7daf0ec1d73dc98d37..f28ea378f8f48410ad890f24df1c144da07a6162 100644 (file)
--- 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();