Don't stomp on dixLookupDrawable() return value in DoCreateGLXPixmap().

This commit is contained in:
Kristian Høgsberg 2009-04-02 17:30:19 -04:00
parent 30d81ad72e
commit f70cfc8f90

View File

@ -1106,7 +1106,11 @@ DoCreateGLXPixmap(ClientPtr client, __GLXscreen *pGlxScreen, __GLXconfig *config
int err;
err = dixLookupDrawable(&pDraw, drawableId, client, 0, DixAddAccess);
if (err != Success || pDraw->type != DRAWABLE_PIXMAP) {
if (err != Success) {
client->errorValue = drawableId;
return err;
}
if (pDraw->type != DRAWABLE_PIXMAP) {
client->errorValue = drawableId;
return BadPixmap;
}