diff options
author | Gerd Hoffmann | 2018-06-18 13:21:41 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2018-06-26 13:48:49 +0200 |
commit | 54d208ffdae20fd2bee745a037607a762d3a82a9 (patch) | |
tree | 2cc5d2d839d530b1db608194eeb97aea4ffe3e55 /ui/egl-headless.c | |
parent | Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging (diff) | |
download | qemu-54d208ffdae20fd2bee745a037607a762d3a82a9.tar.gz qemu-54d208ffdae20fd2bee745a037607a762d3a82a9.tar.xz qemu-54d208ffdae20fd2bee745a037607a762d3a82a9.zip |
Add gles support to egl-helpers, wire up in egl-headless and gtk.
Add support for OpenGL ES to egl-helpers. Wire up the new option for
egl-headless and gtk UIs. egl-headless actually works fine. gtk hits a
not-yet implemented code path in libEGL when trying to use gles mode:
libEGL warning: FIXME: egl/x11 doesn't support front buffer rendering.
(This is mesa 17.2.3).
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Message-id: 20180618112141.23398-1-kraxel@redhat.com
Diffstat (limited to 'ui/egl-headless.c')
-rw-r--r-- | ui/egl-headless.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/egl-headless.c b/ui/egl-headless.c index 7c877122d3..42a41310b0 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.c @@ -171,11 +171,12 @@ static void early_egl_headless_init(DisplayOptions *opts) static void egl_headless_init(DisplayState *ds, DisplayOptions *opts) { + DisplayGLMode mode = opts->has_gl ? opts->gl : DISPLAYGL_MODE_ON; QemuConsole *con; egl_dpy *edpy; int idx; - if (egl_rendernode_init(NULL) < 0) { + if (egl_rendernode_init(NULL, mode) < 0) { error_report("egl: render node init failed"); exit(1); } |