mesa/src/glx
Adam Jackson acaf07c24b glx: Fix GLX_SGI_video_sync for the no-current-drawable case
Starting with GL 3.0 it's legal to have no drawable bound to the current
context. GLX_SGI_video_sync doesn't take a drawable for an argument so
it implicitly operates on... something. NVIDIA's driver throws
GLX_BAD_CONTEXT for GetVideoSync, but WaitVideoSync seems to actually
wait for the next MSC on the context's screen. We could work around this
by internally creating/destroying a GLXWindow for the root window, but
for Xwayland there's not necessarily a good answer it can return.

Just throw GLX_BAD_CONTEXT for both.

Fixes: mesa/mesa#1207
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8334>
2021-02-10 21:10:04 +00:00
..
apple
tests
windows
applegl_glx.c
clientattrib.c
clientinfo.c
compsize.c
create_context.c
dri2.c
dri2.h
dri2_glx.c
dri2_priv.h
dri3_glx.c
dri3_priv.h
dri_common.c
dri_common.h
dri_common_interop.c
dri_common_query_renderer.c
drisw_glx.c
drisw_priv.h
driwindows_glx.c
eval.c
g_glxglvnddispatchfuncs.c
g_glxglvnddispatchindices.h
glx_error.c
glx_error.h
glx_pbuffer.c
glx_query.c
glxclient.h
glxcmds.c
glxconfig.c
glxconfig.h
glxcurrent.c
glxext.c
glxextensions.c
glxextensions.h
glxglvnd.c
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c
indirect_vertex_array.h
indirect_vertex_array_priv.h
indirect_vertex_program.c
indirect_window_pos.c
meson.build
packrender.h
packsingle.h
pixel.c
pixelstore.c
query_renderer.c
render2.c
renderpix.c
single2.c
singlepix.c
vertarr.c
xfont.c