[Spice-devel] [PATCH spice-gtk 4/7] egl: only swap buffers on x11
Pavel Grunt
pgrunt at redhat.com
Mon May 23 10:18:22 UTC 2016
On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote:
> Gtk does it for us already with GtkGlArea.
>
Can be commented in the code as well
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> ---
> src/spice-widget-egl.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
> index fff2831..210b834 100644
> --- a/src/spice-widget-egl.c
> +++ b/src/spice-widget-egl.c
> @@ -575,7 +575,9 @@ void spice_egl_update_display(SpiceDisplay *display)
> 0, 0, 1, 1);
> }
>
> - eglSwapBuffers(d->egl.display, d->egl.surface);
> + if (GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
> + eglSwapBuffers(d->egl.display, d->egl.surface);
> + }
>
> glUseProgram(prog);
> }
More information about the Spice-devel
mailing list