Skip to content
Snippets Groups Projects
Commit 193c0091 authored by Stefan Dirsch's avatar Stefan Dirsch Committed by Emil Velikov
Browse files

dri3: Check for dummyContext to see if the glx_context is valid

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: default avatarStefan Dirsch <sndirsch@suse.de>
Reviewed-by: default avatarEgbert Eich <eich@freedesktop.org>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 7d25ed70)
Nominated-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 0fe3462f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment