renderer: Run glFinish() before glReadPixels()
parent
8cc8c198d2
commit
6e889211db
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue