summaryrefslogtreecommitdiff
path: root/glcapture.c
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-26 09:04:49 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-26 09:04:49 +0200
commit63aeb9cafae4102fd62a0d88e6723be2eafe8a7f (patch)
treeceee1419092e41b56b1ba3c248e6624b30f8ef49 /glcapture.c
parent8bb897857a42a6c9af55704cbe1a185c9aaab929 (diff)
glFlush after glRadPixels
Tell driver we want this data soonish(tm)
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);