mirror of
https://github.com/brl/mutter.git
synced 2025-03-23 11:43:50 +00:00
backend-glx: only check for GLX_SGI_video_sync for direct contexts
The GLX_SGI_video_sync spec explicitly says that it's only supported for direct contexts so we don't setup up the function pointers if glXIsDirect () returns GL_FALSE.
This commit is contained in:
parent
f37de23dec
commit
1b31ac465d
@ -250,7 +250,11 @@ clutter_backend_glx_get_features (ClutterBackend *backend)
|
||||
* so we need to resort to manually synchronizing with the vblank so we
|
||||
* always check for the video_sync extension...
|
||||
*/
|
||||
if (_cogl_check_extension ("GLX_SGI_video_sync", glx_extensions))
|
||||
if (_cogl_check_extension ("GLX_SGI_video_sync", glx_extensions) &&
|
||||
/* Note: the GLX_SGI_video_sync spec explicitly states this extension
|
||||
* only works for direct contexts. */
|
||||
glXIsDirect (clutter_x11_get_default_display (),
|
||||
backend_glx->gl_context))
|
||||
{
|
||||
backend_glx->get_video_sync =
|
||||
(GetVideoSyncProc) cogl_get_proc_address ("glXGetVideoSyncSGI");
|
||||
|
Loading…
x
Reference in New Issue
Block a user