[Mesa-dev] [PATCH] dri3: Check for dummyContext to see if the glx_context is valid

Egbert Eich eich at freedesktop.org
Mon Apr 25 12:56:24 UTC 2016


On Thu, Apr 21, 2016 at 12:02:12PM +0200, Stefan Dirsch wrote:
> According to the comments in src/glx/glxcurrent.c __glXGetCurrentContext()
> always returns a valid pointer. If no context is made current, it will
> contain dummyContext. Thus a test for NULL will always fail.
> 
> https://lists.freedesktop.org/archives/mesa-dev/2016-April/113962.html
> 
> Signed-off-by: Stefan Dirsch <sndirsch at suse.de>

This is pretty much the same as for DRI2.


Reviewed-by: Egbert Eich <eich at freedesktop.org>


Cheers,
	Egbert.


More information about the mesa-dev mailing list