mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00: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:
@@ -207,8 +207,8 @@ void sdl2_gl_scanout_texture(DisplayChangeListener *dcl,
|
||||
SDL_GL_MakeCurrent(scon->real_window, scon->winctx);
|
||||
|
||||
sdl2_set_scanout_mode(scon, true);
|
||||
egl_fb_create_for_tex(&scon->guest_fb, backing_width, backing_height,
|
||||
backing_id);
|
||||
egl_fb_setup_for_tex(&scon->guest_fb, backing_width, backing_height,
|
||||
backing_id, false);
|
||||
}
|
||||
|
||||
void sdl2_gl_scanout_flush(DisplayChangeListener *dcl,
|
||||
|
||||
Reference in New Issue
Block a user