Re: [Spice-devel] [PATCHv2 3/3] egl: set current context, fix multiple display

2016-05-23 Thread Pavel Grunt
On Mon, 2016-05-23 at 13:01 +0200, Marc-André Lureau wrote: > On X11, each widget has its own context. Make sure we are using the > widget associated context when using gl. > > With gtk 3.16, glEGLImageTargetTexture2DOES() can be called during > update scanout, since we can call gtk_gl_area_make_c

[Spice-devel] [PATCHv2 3/3] egl: set current context, fix multiple display

2016-05-23 Thread Marc-André Lureau
On X11, each widget has its own context. Make sure we are using the widget associated context when using gl. With gtk 3.16, glEGLImageTargetTexture2DOES() can be called during update scanout, since we can call gtk_gl_area_make_current(). On < 3.16, do it before drawing. Fixes: https://bugzilla.re