Skip to content
Snippets Groups Projects
Commit 4d9b518a authored by Egbert Eich's avatar Egbert Eich Committed by Emil Velikov
Browse files

dri2: 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://bugzilla.opensuse.org/show_bug.cgi?id=962609



Tested-by: default avatarOlaf Hering <ohering@suse.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 6d1a59d1
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