summary refs log tree commit diff stats
path: root/include/ui/sdl2.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-06-14 10:41:48 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-06-21 14:23:16 +0200
commit371c4ef637145f8fd564c2478e1521bd69734b90 (patch)
tree6f98e50a467495e28f3ffe3f4508d80cf254271d /include/ui/sdl2.h
parentd8dc67e119991123d8e3622de0178147a8ee6140 (diff)
downloadfocaccia-qemu-371c4ef637145f8fd564c2478e1521bd69734b90.tar.gz
focaccia-qemu-371c4ef637145f8fd564c2478e1521bd69734b90.zip
sdl2: use framebuffer helper functions.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170614084149.31314-4-kraxel@redhat.com
Diffstat (limited to 'include/ui/sdl2.h')
-rw-r--r--include/ui/sdl2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index aaf226c2c0..454367ac84 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -7,6 +7,10 @@
 #include <SDL.h>
 #include <SDL_syswm.h>
 
+#ifdef CONFIG_OPENGL
+# include "ui/egl-helpers.h"
+#endif
+
 struct sdl2_console {
     DisplayChangeListener dcl;
     DisplaySurface *surface;
@@ -23,8 +27,8 @@ struct sdl2_console {
     SDL_GLContext winctx;
 #ifdef CONFIG_OPENGL
     ConsoleGLState *gls;
-    GLuint tex_id;
-    GLuint fbo_id;
+    egl_fb guest_fb;
+    egl_fb win_fb;
     bool y0_top;
     bool scanout_mode;
 #endif