From 63aeb9cafae4102fd62a0d88e6723be2eafe8a7f Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 26 Jan 2017 09:04:49 +0200 Subject: glFlush after glRadPixels Tell driver we want this data soonish(tm) --- glcapture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'glcapture.c') 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); -- cgit v1.2.3