Skip to content

glx: Fix GLX_SGI_video_sync for the no-current-drawable case

Adam Jackson requested to merge ajax/mesa:glx-sgi-video-sync into master

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're going to go ahead and handle both cases by implicitly operating on the root window when the context has no current drawable.

Fixes: #1207 (closed)

Merge request reports