mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
sdl: Allow OpenGL ES context creation
Signed-off-by: Elie Tournier <elie.tournier@collabora.com> Message-id: 20180413135842.21325-4-tournier.elie@gmail.com [ kraxel: fix indent ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
844fd50dbb
commit
4867e47cb6
3 changed files with 22 additions and 3 deletions
4
vl.c
4
vl.c
|
@ -2144,6 +2144,10 @@ static void parse_display(const char *p)
|
|||
dpy.has_gl = true;
|
||||
if (strstart(opts, "on", &nextopt)) {
|
||||
dpy.gl = DISPLAYGL_MODE_ON;
|
||||
} else if (strstart(opts, "core", &nextopt)) {
|
||||
dpy.gl = DISPLAYGL_MODE_CORE;
|
||||
} else if (strstart(opts, "es", &nextopt)) {
|
||||
dpy.gl = DISPLAYGL_MODE_ES;
|
||||
} else if (strstart(opts, "off", &nextopt)) {
|
||||
dpy.gl = DISPLAYGL_MODE_OFF;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue