Allow GLX sources to build against Mesa 7.4 sources
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
e8b324102f
commit
0d9f3ca7ea
|
@ -251,12 +251,15 @@ __glXDRIbindTexImage(__GLXcontext *baseContext,
|
||||||
if (texBuffer == NULL)
|
if (texBuffer == NULL)
|
||||||
return Success;
|
return Success;
|
||||||
|
|
||||||
|
#if __DRI_TEX_BUFFER_VERSION >= 2
|
||||||
if (texBuffer->base.version >= 2 && texBuffer->setTexBuffer2 != NULL) {
|
if (texBuffer->base.version >= 2 && texBuffer->setTexBuffer2 != NULL) {
|
||||||
(*texBuffer->setTexBuffer2)(context->driContext,
|
(*texBuffer->setTexBuffer2)(context->driContext,
|
||||||
glxPixmap->target,
|
glxPixmap->target,
|
||||||
glxPixmap->format,
|
glxPixmap->format,
|
||||||
drawable->driDrawable);
|
drawable->driDrawable);
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
texBuffer->setTexBuffer(context->driContext,
|
texBuffer->setTexBuffer(context->driContext,
|
||||||
glxPixmap->target,
|
glxPixmap->target,
|
||||||
drawable->driDrawable);
|
drawable->driDrawable);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user