]> git.sesse.net Git - nageru/commitdiff
Fix an issue where scrubbing in Futatabi could lock up if there were no inputs going...
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Thu, 14 Oct 2021 19:29:58 +0000 (21:29 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Thu, 14 Oct 2021 19:29:58 +0000 (21:29 +0200)
futatabi/jpeg_frame_view.cpp

index af894328dc1f27cd311796707d16d3327e685692..7da8f14cea7d60d07f21361f1f6f2a521ad7fba0 100644 (file)
@@ -210,6 +210,7 @@ shared_ptr<Frame> decode_jpeg(const string &jpeg)
        glFlushMappedNamedBufferRange(pbo.pbo, 0, dinfo.image_width * dinfo.image_height + chroma_width * chroma_height * 2);
        glMemoryBarrier(GL_PIXEL_BUFFER_BARRIER_BIT);
        pbo.upload_done = RefCountedGLsync(GL_SYNC_GPU_COMMANDS_COMPLETE, /*flags=*/0);
+       glFlush();
        frame->uploaded_ui_thread = pbo.upload_done;
        frame->uploaded_interpolation = pbo.upload_done;
        global_pbo_pool->release_pbo(move(pbo));