From 1ad9f01c31742157934a791e6141d10520d13e8a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 10 Mar 2011 10:47:40 -0500 Subject: glx: Add texbuffer2 support to swrast Reviewed-by: Julien Cristau Signed-off-by: Adam Jackson --- glx/glxdriswrast.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'glx') diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c index 08ea33865..f88d04f55 100644 --- a/glx/glxdriswrast.c +++ b/glx/glxdriswrast.c @@ -201,6 +201,14 @@ __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 +#endif texBuffer->setTexBuffer(context->driContext, glxPixmap->target, drawable->driDrawable); -- cgit v1.2.3