summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-11-05 10:03:26 +0100
committerMichel Dänzer <[email protected]>2007-11-05 10:03:26 +0100
commitdb2ec4502e2518d40c0872335a6b44956a73853a (patch)
tree4918efb4eb30a45e4256a508b2d4ba7878bc13fb /include
parent417cb2c1829f2119f6674987edac09c61d633b45 (diff)
Fix GLX build of xserver master branch.
The internal CreatePixmap API has been extended.
Diffstat (limited to 'include')
-rw-r--r--include/GL/xmesa_xf86.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/GL/xmesa_xf86.h b/include/GL/xmesa_xf86.h
index 4d69d4d930d..10f93c3ab62 100644
--- a/include/GL/xmesa_xf86.h
+++ b/include/GL/xmesa_xf86.h
@@ -169,8 +169,13 @@ do { \
/* CreatePixmap returns a PixmapPtr; so, it cannot be inside braces */
+#ifdef CREATE_PIXMAP_USAGE_SCRATCH
+#define XMesaCreatePixmap(__d,__b,__w,__h,__depth) \
+ (*__d->CreatePixmap)(__d, __w, __h, __depth, 0)
+#else
#define XMesaCreatePixmap(__d,__b,__w,__h,__depth) \
(*__d->CreatePixmap)(__d, __w, __h, __depth)
+#endif
#define XMesaFreePixmap(__d,__b) \
(*__d->DestroyPixmap)(__b)