mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
egl: misc framebuffer helper improvements.
Rename the functions to to say "setup" instead of "create" because they support being called multiple times on the same egl framebuffer. Properly delete unused textures, update function interfaces to support this. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20170927115031.12063-1-kraxel@redhat.com
This commit is contained in:
parent
e2f82e924d
commit
74083f9c01
6 changed files with 30 additions and 19 deletions
|
@ -190,8 +190,8 @@ void gd_egl_scanout_texture(DisplayChangeListener *dcl,
|
|||
vc->gfx.esurface, vc->gfx.ectx);
|
||||
|
||||
gtk_egl_set_scanout_mode(vc, true);
|
||||
egl_fb_create_for_tex(&vc->gfx.guest_fb, backing_width, backing_height,
|
||||
backing_id);
|
||||
egl_fb_setup_for_tex(&vc->gfx.guest_fb, backing_width, backing_height,
|
||||
backing_id, false);
|
||||
}
|
||||
|
||||
void gd_egl_scanout_flush(DisplayChangeListener *dcl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue