From 371c4ef637145f8fd564c2478e1521bd69734b90 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 14 Jun 2017 10:41:48 +0200 Subject: sdl2: use framebuffer helper functions. Signed-off-by: Gerd Hoffmann Message-id: 20170614084149.31314-4-kraxel@redhat.com --- include/ui/sdl2.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/ui') 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 #include +#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 -- cgit v1.2.3