From 0d9f3ca7eabd4c514808114d30627f682c8bd030 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 8 Apr 2009 14:53:46 -0700 Subject: [PATCH] Allow GLX sources to build against Mesa 7.4 sources Signed-off-by: Ian Romanick --- glx/glxdri2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);