diff options
Diffstat (limited to 'hw/xfree86/dri2/dri2ext.c')
-rw-r--r-- | hw/xfree86/dri2/dri2ext.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c index bac7b79ba..beadc832b 100644 --- a/hw/xfree86/dri2/dri2ext.c +++ b/hw/xfree86/dri2/dri2ext.c @@ -66,10 +66,8 @@ validDRI2Drawable(ClientPtr client, XID id, Mask access, rc = dixLookupResourceByType((pointer*)&pTmp, id, dri2DrawableRes, client, access); - if (rc == BadValue) { - *status = BadDrawable; - return FALSE; - } + if (rc == BadValue) + rc = DRI2LookupDrawableComplex(client, id, &pTmp); *status = rc; if (rc != Success) return FALSE; |