Mesa (master): glx/dri2: Always use X drawable ID for DRI2 protocol.
Michel Dänzer
daenzer at kemper.freedesktop.org
Fri Aug 21 23:34:56 UTC 2009
Module: Mesa
Branch: master
Commit: 029e643b24f7deea51e90b9101323e7bcce43681
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=029e643b24f7deea51e90b9101323e7bcce43681
Author: Michel Dänzer <daenzer at vmware.com>
Date: Sat Aug 22 01:33:37 2009 +0200
glx/dri2: Always use X drawable ID for DRI2 protocol.
Fixes protocol errors in cases where the GLX ID is different.
---
src/glx/x11/dri2_glx.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/glx/x11/dri2_glx.c b/src/glx/x11/dri2_glx.c
index d5d5a07..89efe3a 100644
--- a/src/glx/x11/dri2_glx.c
+++ b/src/glx/x11/dri2_glx.c
@@ -159,7 +159,7 @@ dri2DestroyDrawable(__GLXDRIdrawable * pdraw)
const __DRIcoreExtension *core = pdraw->psc->core;
(*core->destroyDrawable) (pdraw->driDrawable);
- DRI2DestroyDrawable(pdraw->psc->dpy, pdraw->drawable);
+ DRI2DestroyDrawable(pdraw->psc->dpy, pdraw->xDrawable);
Xfree(pdraw);
}
@@ -189,7 +189,7 @@ dri2CreateDrawable(__GLXscreenConfigs * psc,
config->driConfig, pdraw);
if (!pdraw->base.driDrawable) {
- DRI2DestroyDrawable(psc->dpy, drawable);
+ DRI2DestroyDrawable(psc->dpy, xDrawable);
Xfree(pdraw);
return NULL;
}
@@ -221,7 +221,7 @@ dri2CopySubBuffer(__GLXDRIdrawable * pdraw,
region = XFixesCreateRegion(pdraw->psc->dpy, &xrect, 1);
/* should get a fence ID back from here at some point */
- DRI2CopyRegion(pdraw->psc->dpy, pdraw->drawable, region,
+ DRI2CopyRegion(pdraw->psc->dpy, pdraw->xDrawable, region,
DRI2BufferFrontLeft, DRI2BufferBackLeft);
XFixesDestroyRegion(pdraw->psc->dpy, region);
@@ -261,7 +261,7 @@ dri2WaitX(__GLXDRIdrawable * pdraw)
#endif
region = XFixesCreateRegion(pdraw->psc->dpy, &xrect, 1);
- DRI2CopyRegion(pdraw->psc->dpy, pdraw->drawable, region,
+ DRI2CopyRegion(pdraw->psc->dpy, pdraw->xDrawable, region,
DRI2BufferFakeFrontLeft, DRI2BufferFrontLeft);
XFixesDestroyRegion(pdraw->psc->dpy, region);
}
@@ -287,7 +287,7 @@ dri2WaitGL(__GLXDRIdrawable * pdraw)
#endif
region = XFixesCreateRegion(pdraw->psc->dpy, &xrect, 1);
- DRI2CopyRegion(pdraw->psc->dpy, pdraw->drawable, region,
+ DRI2CopyRegion(pdraw->psc->dpy, pdraw->xDrawable, region,
DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft);
XFixesDestroyRegion(pdraw->psc->dpy, region);
}
More information about the mesa-commit
mailing list