qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 2/2] sdl: Allow OpenGL ES context creation


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v2 2/2] sdl: Allow OpenGL ES context creation
Date: Tue, 10 Apr 2018 14:46:59 +0200
User-agent: NeoMutt/20180323

On Tue, Apr 10, 2018 at 01:02:22PM +0100, Elie Tournier wrote:
> Signed-off-by: Elie Tournier <address@hidden>
> ---
>  include/ui/sdl2.h |  1 +
>  qemu-options.hx   |  2 +-
>  ui/sdl2-gl.c      | 17 +++++++++++++++--
>  ui/sdl2.c         |  1 +
>  vl.c              |  4 ++++
>  5 files changed, 22 insertions(+), 3 deletions(-)
> 
> diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
> index 51084e6320..8495795e48 100644
> --- a/include/ui/sdl2.h
> +++ b/include/ui/sdl2.h
> @@ -22,6 +22,7 @@ struct sdl2_console {
>      int x, y, w, h;
>      int hidden;
>      int opengl;
> +    DisplayGLMode gl_mode;

I'd suggest to move the "opts" global in sdl2.c to this struct instead,
then you can use scon->opts->gl.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]