summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-03-10 10:47:40 -0500
committerAdam Jackson <ajax@redhat.com>2011-05-04 13:15:58 -0400
commit522443dbf9edf618a158b8241afde5ab35f571f8 (patch)
tree4381905200664365319966cfc2cd885d3acbde6e
parent353ccf4d8eabcf046824d418fd59b417bc7e7851 (diff)
glx: Add texbuffer2 support to swrast
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit 1ad9f01c31742157934a791e6141d10520d13e8a)
-rw-r--r--glx/glxdriswrast.c8
1 files changed, 8 insertions, 0 deletions
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);