From 01c2e01f2aee580438b74bfb9da8f584f3878e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 9 Mar 2008 21:40:27 -0400 Subject: [PATCH] GLX: Track changes to DRI_TEX_BUFFER extension. We now just pass in the __DRIdrawable. --- GL/glx/glxdri2.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/GL/glx/glxdri2.c b/GL/glx/glxdri2.c index fbc018caf..fecfb1977 100644 --- a/GL/glx/glxdri2.c +++ b/GL/glx/glxdri2.c @@ -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; }