Hi Xiong Zhang,
On 25 March 2015 at 08:05, Xiong Zhang <xiong.y.zh...@intel.com> wrote:
> GLX_ARB_create_context spec says:
> If either <draw> or <read> are not a valid GLX drawable, a GLXBadDrawable
> error is generated, unless <draw> and <read> are both None and the OpenGL
> version supported by <ctx> is 3.0 or greater.
>
> So when both <draw> and <read> are None, it could pass NULL drawable into
> driver instead of returing GLXBadDrawable.
>
I'm a bit fresh in the area, but where do we check that the OpenGL
version supported is 3.0 or greater ? Is there an assumption that all
dri2/3 modules support it ?

A similar commit has landed for dri2 in mesa 10.2 f658150639c(glx:
Pass NULL DRI drawables into the DRI driver for None GLX drawables).
Shouldn't a similar one be due for dri(1), drisw etc ? Not suggesting
that you should prep one, just asking.

From a quick look - if it wasn't for indirect glx, most of these (and
patch 2/3) changes could be pushed one level up to
glxcurrent.c:MakeContextCurrent. Bit unfortunate about the duplication
but that's another story.

Cheers
Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to