summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/dri_common.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-desktop.localdomain>2009-11-10 13:28:01 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-01-08 12:33:32 -0500
commitefc82e7c703f9160cfdbe6d97e166ca6f5e75d86 (patch)
treef0c5d65580be40ee818758b11276531dcb6142bd /src/glx/x11/dri_common.c
parentdaf7fe69f7bd0caa955d30b43fc35b7ce0069b6b (diff)
downloadexternal_mesa3d-efc82e7c703f9160cfdbe6d97e166ca6f5e75d86.zip
external_mesa3d-efc82e7c703f9160cfdbe6d97e166ca6f5e75d86.tar.gz
external_mesa3d-efc82e7c703f9160cfdbe6d97e166ca6f5e75d86.tar.bz2
DRI2: add SwapInterval support
Add support for the DRI2SwapInterval protocol request. This allows direct rendered clients to control their swap interval per the SGI_swap_control extension. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'src/glx/x11/dri_common.c')
-rw-r--r--src/glx/x11/dri_common.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/glx/x11/dri_common.c b/src/glx/x11/dri_common.c
index a94c752..d1b77f3 100644
--- a/src/glx/x11/dri_common.c
+++ b/src/glx/x11/dri_common.c
@@ -390,12 +390,9 @@ dri2BindExtensions(__GLXscreenConfigs *psc)
}
#endif
-#ifdef __DRI2_MEDIA_STREAM_COUNTER
- if (strcmp(extensions[i]->name, __DRI2_MEDIA_STREAM_COUNTER) == 0) {
- psc->msc = (__DRI2mediaStreamCounterExtension *) extensions[i];
- __glXEnableDirectExtension(psc, "GLX_SGI_video_sync");
- }
-#endif
+ __glXEnableDirectExtension(psc, "GLX_SGI_video_sync");
+ __glXEnableDirectExtension(psc, "GLX_SGI_swap_control");
+ __glXEnableDirectExtension(psc, "GLX_MESA_swap_control");
#ifdef __DRI2_FLUSH
if ((strcmp(extensions[i]->name, __DRI2_FLUSH) == 0)) {