gl-renderer: optionally read pixels into software buffer in repaint_output
Split the glReadPixels
part of gl_renderer_do_capture
out into a separate function gl_renderer_do_read_pixels
and optionally use that in repaint_output
, after repainting, to download FBO contents into a buffer provided by the backend.
This way software backends such as VNC and RDP can share the download implementation, and the download can make use of the known total damage inside repaint_output
.
Based on !1106 (merged).
Edited by Philipp Zabel