OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3145d
)
DRI2: expose OML_sync_control if possible
author
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 5 Mar 2010 19:17:19 +0000
(11:17 -0800)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 5 Mar 2010 19:22:05 +0000
(11:22 -0800)
If the server supports the OML related protocol, enable support for the
extension.
src/glx/dri2_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/dri2_glx.c
b/src/glx/dri2_glx.c
index
29d589c
..
d573e46
100644
(file)
--- a/
src/glx/dri2_glx.c
+++ b/
src/glx/dri2_glx.c
@@
-614,6
+614,9
@@
dri2CreateScreen(__GLXscreenConfigs * psc, int screen,
psp->setSwapInterval = dri2SetSwapInterval;
psp->getSwapInterval = dri2GetSwapInterval;
#endif
+#if defined(X_DRI2GetMSC) && defined(X_DRI2WaitMSC) && defined(X_DRI2SwapInterval)
+ __glXEnableDirectExtension(psc, "GLX_OML_sync_control");
+#endif
}
/* DRI2 suports SubBuffer through DRI2CopyRegion, so it's always