summaryrefslogtreecommitdiffstats
path: root/ui/sdl2-gl.c
diff options
context:
space:
mode:
authorGerd Hoffmann2017-09-27 13:50:31 +0200
committerGerd Hoffmann2017-09-29 10:36:33 +0200
commit74083f9c01910b1d36ddaca04db468eb326676ae (patch)
treed4a928528ba030c2afa7ee735942023becf53a8a /ui/sdl2-gl.c
parentconsole: purge curses bits from console.h (diff)
downloadqemu-74083f9c01910b1d36ddaca04db468eb326676ae.tar.gz
qemu-74083f9c01910b1d36ddaca04db468eb326676ae.tar.xz
qemu-74083f9c01910b1d36ddaca04db468eb326676ae.zip
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
Diffstat (limited to 'ui/sdl2-gl.c')
-rw-r--r--ui/sdl2-gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c
index dcad3d0d26..9110491ee5 100644
--- a/ui/sdl2-gl.c
+++ b/ui/sdl2-gl.c
@@ -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,