Re: [spice-gtk PATCH] spice-widget: init egl only after first gl_scanout

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

 



On Fri, Jul 22, 2016 at 5:05 PM, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:
Why instead of calling it recursively you just move the check
before?

something like

if (!d->egl.context_ready) {
   initialize context ...
}
if (d->egl.context_ready) {
   use context (as current code) ...
}

perhaps would be even better to call spice_egl_init before
set_egl_enabled

>      }
>  }
>

Frediano

I wanted to do it like that originally, but didn't want to make a second runtime if check.

--
Lukas Venhoda
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]