mesa/src/glx
Stefan Dirsch 7d25ed7036 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: Stefan Dirsch <sndirsch@suse.de>
Reviewed-by: Egbert Eich <eich@freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-04-27 13:03:34 +01:00
..
apple Fix a few typos 2015-04-27 17:28:29 +03:00
tests glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
.gitignore
applegl_glx.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
clientattrib.c
clientinfo.c
compsize.c glx: Fix image size computation for EXT_texture_integer (v2) 2015-07-31 12:32:16 -04:00
create_context.c
dri2.c glx: do not leak the dri2 extension information 2015-02-18 11:02:25 +00:00
dri2.h glx: Fix build since 679c2ef "glx/drisw: add support for DRI2rendererQueryExtension", when only building drisw renderer 2014-08-21 16:59:48 +01:00
dri2_glx.c dri2: Check for dummyContext to see if the glx_context is valid 2016-04-27 13:03:11 +01:00
dri2_priv.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
dri3_glx.c dri3: Check for dummyContext to see if the glx_context is valid 2016-04-27 13:03:34 +01:00
dri3_priv.h glx: implement GLX part of interop interface (v2) 2016-04-20 12:18:47 +02:00
dri_common.c glx: update to updated version of EXT_create_context_es2_profile 2016-02-03 15:44:51 -05:00
dri_common.h glx: Include util/macros.h instead of redefining PRINTFLIKE. 2015-04-13 12:03:33 +01:00
dri_common_interop.c glx: implement GLX part of interop interface (v2) 2016-04-20 12:18:47 +02:00
dri_common_query_renderer.c mesa/glx: Resolve GCC sign-compare warning. 2015-08-18 11:34:43 -07:00
dri_glx.c include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
dri_sarea.h include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
drisw_glx.c glx: update to updated version of EXT_create_context_es2_profile 2016-02-03 15:44:51 -05:00
drisw_priv.h glx/drisw: add support for DRI2rendererQueryExtension 2014-08-15 17:35:37 +01:00
eval.c
glx_error.c
glx_error.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
glx_pbuffer.c glx: Added missing null check in GetDrawableAttribute() 2014-06-26 15:37:14 +03:00
glx_query.c
glxclient.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
glxcmds.c glx: implement GLX part of interop interface (v2) 2016-04-20 12:18:47 +02:00
glxconfig.c
glxconfig.h
glxcurrent.c glx: remove support for non-multithreaded platforms 2015-03-11 23:28:26 +00:00
glxext.c glx: Fix __glXWireToEvent for BufferSwapComplete 2015-08-18 09:39:46 -04:00
glxextensions.c glx: update to updated version of EXT_create_context_es2_profile 2016-02-03 15:44:51 -05:00
glxextensions.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
glxhash.c
glxhash.h
indirect_glx.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
indirect_init.h Fix invalid extern "C" around header inclusion. 2015-03-05 10:21:40 -08:00
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c Fix a few typos 2015-04-27 17:28:29 +03:00
indirect_vertex_array.h
indirect_vertex_array_priv.h
indirect_vertex_program.c
indirect_window_pos.c
Makefile.am glx: implement GLX part of interop interface (v2) 2016-04-20 12:18:47 +02:00
packrender.h glx: Drop CRAY support. 2015-10-05 14:34:16 -07:00
packsingle.h glx: Drop CRAY support. 2015-10-05 14:34:16 -07:00
pixel.c
pixelstore.c glx: Use _mesa_lroundevenf() in glPixelStoref(). 2015-08-04 10:33:16 -07:00
query_renderer.c
render2.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
renderpix.c
SConscript scons: Build dri_common_interop.c. 2016-04-20 12:41:24 +01:00
single2.c Fix a few typos 2015-04-27 17:28:29 +03:00
singlepix.c
vertarr.c Fix build of appleglx 2014-05-23 15:24:07 +01:00
XF86dri.c Fix a few typos 2015-04-27 17:28:29 +03:00
xf86dri.h
xf86dristr.h
xfont.c darwin: build fix 2015-02-10 22:22:33 -08:00