summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/dri_common.c
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2009-02-19 18:39:08 +0000
committerAlan Hourihane <[email protected]>2009-02-23 20:28:11 +0000
commit65562453fba69e862d5e3b381d18db9c40d9353c (patch)
tree02f8b11eace9763d3b6dd61773a0193dd2417c3a /src/glx/x11/dri_common.c
parent4fc7cde770a66ff5bcf817af33a7b0b2c04354d5 (diff)
glx: add support for a reallyFlush() function before swap occurs.
Diffstat (limited to 'src/glx/x11/dri_common.c')
-rw-r--r--src/glx/x11/dri_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glx/x11/dri_common.c b/src/glx/x11/dri_common.c
index 4fda649e59a..90c3d8c7d9d 100644
--- a/src/glx/x11/dri_common.c
+++ b/src/glx/x11/dri_common.c
@@ -392,6 +392,13 @@ driBindExtensions(__GLXscreenConfigs *psc, int dri2)
}
#endif
+#ifdef __DRI2_FLUSH
+ if ((strcmp(extensions[i]->name, __DRI2_FLUSH) == 0) && dri2) {
+ psc->f = (__DRI2flushExtension *) extensions[i];
+ /* internal driver extension, no GL extension exposed */
+ }
+#endif
+
/* Ignore unknown extensions */
}
}