Re: [Qemu-devel] [PATCH] ui/egl: fix framebuffer reads

2019-09-09 Thread Marc-André Lureau
Hi On Mon, Sep 9, 2019 at 11:40 AM Gerd Hoffmann wrote: > > Fix egl_fb_read() to use the (destination) surface size instead of the > (source) framebuffer source for glReadPixels. Pass the DisplaySurface > instead of the pixeldata pointer to egl_fb_read() to make this possible. > > With that in p

[Qemu-devel] [PATCH] ui/egl: fix framebuffer reads

2019-09-09 Thread Gerd Hoffmann
Fix egl_fb_read() to use the (destination) surface size instead of the (source) framebuffer source for glReadPixels. Pass the DisplaySurface instead of the pixeldata pointer to egl_fb_read() to make this possible. With that in place framebuffer reads work fine even if the surface and framebuffer