xserver/glx
Doğukan Korkmaztürk 4781f2a5a8 GLX: Free the tag of the old context later
In CommonMakeCurrent() function, the tag of the old context is freed
before the new context is made current. This is problematic because if
the CommonMakeNewCurrent() function fails, the tag of the old context
ends up being removed, even though it is still active. This causes
subsequent glXMakeCurrent() or glXMakeContextCurrent() requests to
generate a GLXBadContextTag error.

This change moves the function call that frees the old tag to a location
where the result of CommonMakeNewCurrent() call is known and it is safe
to free it.

Signed-off-by: Doğukan Korkmaztürk <dkorkmazturk@nvidia.com>
2022-12-09 15:10:09 +00:00
..
clientinfo.c
createcontext.c
extension_string.c
extension_string.h
glxbyteorder.h
glxcmds.c
glxcmdsswap.c
glxcontext.h
glxdrawable.h
glxdri2.c
glxdricommon.c
glxdricommon.h
glxdriswrast.c
glxext.c
glxext.h
glxscreens.c
glxscreens.h
glxserver.h
glxutil.h
indirect_dispatch.c
indirect_dispatch.h
indirect_dispatch_swap.c
indirect_program.c
indirect_reqsize.c
indirect_reqsize.h
indirect_size.h
indirect_size_get.c
indirect_size_get.h
indirect_table.c
indirect_table.h
indirect_texture_compression.c
indirect_util.c
indirect_util.h
meson.build
render2.c
render2swap.c
renderpix.c
renderpixswap.c
rensize.c
single2.c
single2swap.c
singlepix.c
singlepixswap.c
singlesize.c
singlesize.h
swap_interval.c
unpack.h
vnd_dispatch_stubs.c
vndcmds.c GLX: Free the tag of the old context later 2022-12-09 15:10:09 +00:00
vndext.c
vndserver.h
vndservermapping.c
vndservervendor.c
vndservervendor.h
xfont.c