mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
Don't stomp on dixLookupDrawable() return value in DoCreateGLXPixmap().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user