projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355370e
)
glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
author
Michel Dänzer
<daenzer@vmware.com>
Fri, 23 Apr 2010 09:14:13 +0000
(11:14 +0200)
committer
Michel Dänzer
<michel@daenzer.net>
Fri, 23 Apr 2010 09:16:03 +0000
(11:16 +0200)
src/glx/dri2_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/dri2_glx.c
b/src/glx/dri2_glx.c
index 3a53ce91b382a19aff115600c85eddafd2de94e2..fa2b98785376c4c2f43143dcdf25a24f8d05568c 100644
(file)
--- a/
src/glx/dri2_glx.c
+++ b/
src/glx/dri2_glx.c
@@
-204,12
+204,14
@@
dri2CreateDrawable(__GLXscreenConfigs * psc,
return NULL;
}
+#ifdef X_DRI2SwapInterval
/*
* Make sure server has the same swap interval we do for the new
* drawable.
*/
if (pdp->swapAvailable)
DRI2SwapInterval(psc->dpy, xDrawable, pdraw->swap_interval);
+#endif
return &pdraw->base;
}