mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-30 03:24:28 +00:00
GLX: Track changes to DRI_TEX_BUFFER extension.
We now just pass in the __DRIdrawable.
This commit is contained in:
@@ -225,7 +225,7 @@ __glXDRIbindTexImage(__GLXcontext *baseContext,
|
||||
__GLXDRIscreen * const screen = (__GLXDRIscreen *) glxGetScreen(pScreen);
|
||||
PixmapPtr pixmap;
|
||||
__GLXDRIcontext *context = (__GLXDRIcontext *) baseContext;
|
||||
unsigned int flags;
|
||||
__GLXDRIdrawable *drawable = (__GLXDRIdrawable *) glxPixmap;
|
||||
|
||||
if (screen->texBuffer == NULL)
|
||||
return Success;
|
||||
@@ -233,10 +233,7 @@ __glXDRIbindTexImage(__GLXcontext *baseContext,
|
||||
pixmap = (PixmapPtr) glxPixmap->pDraw;
|
||||
screen->texBuffer->setTexBuffer(&context->driContext,
|
||||
glxPixmap->target,
|
||||
DRI2GetPixmapHandle(pixmap, &flags),
|
||||
pixmap->drawable.depth,
|
||||
pixmap->devKind,
|
||||
pixmap->drawable.height);
|
||||
&drawable->driDrawable);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user