[Spice-devel] [PATCH spice-gtk 3/5] egl: bind the scanout texture

Pavel Grunt pgrunt at redhat.com
Wed May 25 07:00:25 UTC 2016


Hi,

What about binding the texture in gl_make_current ?

More info about the regression in the commit log would be nice.

Pavel

On Tue, 2016-05-24 at 21:31 +0200, Marc-André Lureau wrote:
> Fix regression from commit 3539ac6212d506128bd38aad032e0363e78cb4f6.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> ---
>  src/spice-widget-egl.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
> index c60765c..1557fdc 100644
> --- a/src/spice-widget-egl.c
> +++ b/src/spice-widget-egl.c
> @@ -672,6 +672,7 @@ gboolean spice_egl_update_scanout(SpiceDisplay *display,
>      if (!gl_make_current(display, NULL))
>          return FALSE;
>  
> +    glBindTexture(GL_TEXTURE_2D, d->egl.tex_id);
>      glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, (GLeglImageOES)d->egl.image);
>  #endif
>  


More information about the Spice-devel mailing list