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

2016-04-27 Thread Stefan Dirsch
On Wed, Apr 27, 2016 at 01:12:57PM +0100, Emil Velikov wrote: > On 25 April 2016 at 14:06, 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

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

2016-04-27 Thread Emil Velikov
On 25 April 2016 at 14:06, 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/arc

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

2016-04-25 Thread Egbert Eich
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.free

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

2016-04-25 Thread Stefan Dirsch
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: Stef

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

2016-04-21 Thread Stefan Dirsch
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: Stef