summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-04-08 14:53:46 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-04-08 15:10:21 -0700
commit0d9f3ca7eabd4c514808114d30627f682c8bd030 (patch)
tree06404a92322561b60363fd3217988e29d61c4e05
parente8b324102f6e21ae2b8292a6f50d016dd6254dd6 (diff)
Allow GLX sources to build against Mesa 7.4 sources
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--glx/glxdri2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 4df406b5a..77b530721 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -251,12 +251,15 @@ __glXDRIbindTexImage(__GLXcontext *baseContext,
if (texBuffer == NULL)
return Success;
+#if __DRI_TEX_BUFFER_VERSION >= 2
if (texBuffer->base.version >= 2 && texBuffer->setTexBuffer2 != NULL) {
(*texBuffer->setTexBuffer2)(context->driContext,
glxPixmap->target,
glxPixmap->format,
drawable->driDrawable);
- } else {
+ } else
+#endif
+ {
texBuffer->setTexBuffer(context->driContext,
glxPixmap->target,
drawable->driDrawable);