diff --git a/src/render.c b/src/render.c index 9e98a59..80133b4 100644 --- a/src/render.c +++ b/src/render.c @@ -744,6 +744,7 @@ void renderer_read_pixels(struct renderer* self, void* dst, uint32_t y, glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT, &read_format); glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE, &read_type); + glFinish(); glReadPixels(0, y, width, height, read_format, read_type, dst); }