Re: [Qemu-devel] [PATCH 6/9] sdl2/opengl: add opengl context and scanout support

2015-09-16 Thread Max Reitz
On 15.09.2015 09:54, Gerd Hoffmann wrote: > Hi, > >>> +scon->scanout_mode = scanout; >>> +if (!scon->scanout_mode) { >>> +if (scon->fbo_id) { >>> +glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, >>> + GL_COLOR_ATTACHMENT0_EXT, >>> +

Re: [Qemu-devel] [PATCH 6/9] sdl2/opengl: add opengl context and scanout support

2015-09-15 Thread Gerd Hoffmann
Hi, > > +scon->scanout_mode = scanout; > > +if (!scon->scanout_mode) { > > +if (scon->fbo_id) { > > +glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, > > + GL_COLOR_ATTACHMENT0_EXT, > > + GL_TEXTUR

Re: [Qemu-devel] [PATCH 6/9] sdl2/opengl: add opengl context and scanout support

2015-09-14 Thread Max Reitz
On 09.09.2015 13:20, Gerd Hoffmann wrote: > This allows virtio-gpu to render in 3d mode. > > Signed-off-by: Gerd Hoffmann > --- > include/ui/sdl2.h | 22 - > ui/sdl2-gl.c | 133 > ++ > ui/sdl2.c | 7 +++ > 3 files chang