summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-03-10 10:47:40 -0500
committerAdam Jackson <ajax@redhat.com>2011-03-14 13:13:58 -0400
commit1ad9f01c31742157934a791e6141d10520d13e8a (patch)
treeaff961fc200e3855c196842d91f5ac659ae26a5c /glx
parenta19771e4337d1c4600550314bbc42a1495a023ff (diff)
glx: Add texbuffer2 support to swrast
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx')
-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);