renderer: Run glFinish() before glReadPixels()

pull/40/head
Andri Yngvason 2020-04-26 14:15:57 +00:00
parent 8cc8c198d2
commit 6e889211db
1 changed files with 1 additions and 0 deletions

View File

@ -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_FORMAT, &read_format);
glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE, &read_type); glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE, &read_type);
glFinish();
glReadPixels(0, y, width, height, read_format, read_type, dst); glReadPixels(0, y, width, height, read_format, read_type, dst);
} }