summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-02-23 16:49:51 +0100
committerKeith Packard <keithp@keithp.com>2009-02-25 11:34:48 -0800
commite96921ca954ff0d3de8a69cea085aac2d43b0a2e (patch)
treef26d8b91418b0ba486e8df456f787121776d6fd6 /hw
parent584f46b81c6ed126014e963cb4ea40f83014f1c7 (diff)
DRI1: Make DRICreateDrawable return TRUE for pixmaps.
GLX_EXT_texture_from_pixmap was broken since commit a26c77ff432d2e85a2665fc36fca25143460c476 ('glx: fix retval checks when failures occur for drawable creation.') Signed-off-by: Michel Dänzer <daenzer@vmware.com> (cherry picked from commit ef320bdd5ec3419abba77041d3a4d96a3ff87563)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/dri/dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c
index 1a3e09111..bddb6510e 100644
--- a/hw/xfree86/dri/dri.c
+++ b/hw/xfree86/dri/dri.c
@@ -1291,7 +1291,7 @@ DRICreateDrawable(ScreenPtr pScreen, ClientPtr client, DrawablePtr pDrawable,
*hHWDrawable = pDRIDrawablePriv->hwDrawable;
}
}
- else { /* pixmap (or for GLX 1.3, a PBuffer) */
+ else if (pDrawable->type != DRAWABLE_PIXMAP) { /* PBuffer */
/* NOT_DONE */
return FALSE;
}