diff options
author | Keith Packard <keithp@keithp.com> | 2009-06-29 23:18:55 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-06-29 23:18:55 -0700 |
commit | a7a93c12f91e0de72868f17a555215f1795d9e2f (patch) | |
tree | 0ccd1678bbafdcb023ceb3a437ce9864f152354b /glx | |
parent | 5b49aff4f8b5e4d15bc883f74509d93324f09f5f (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 0b64298ca..836fea4d8 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -222,12 +222,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); |