summaryrefslogtreecommitdiff
path: root/glcapture.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcapture.c')
-rw-r--r--glcapture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glcapture.c b/glcapture.c
index c9dcd91..37a0e81 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -400,6 +400,7 @@ capture_frame_pbo(struct gl *gl, const GLint view[4], const uint64_t ts)
}
glReadPixels(view[0], view[1], view[2], view[3], frame.format, GL_UNSIGNED_BYTE, NULL);
+ glFlush();
for (size_t i = 0; i < ARRAY_SIZE(map); ++i)
glPixelStorei(map[i].t, map[i].o);