From c83e842d621806af883a48af93c8fced52f3590d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 29 Jun 2009 23:18:55 -0700 Subject: [PATCH] Build against DRI_TEX_BUFFER_VERSION 1 setTexBuffer2 isn't present in this version of the structure, so don't try to call it. Signed-off-by: Keith Packard (cherry picked from commit a7a93c12f91e0de72868f17a555215f1795d9e2f) --- glx/glxdri2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 7b814834f..a522800ca 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -221,12 +221,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);