mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-06 16:20:40 +01:00
Don't stomp on dixLookupDrawable() return value in DoCreateGLXPixmap().
This commit is contained in:
parent
30d81ad72e
commit
f70cfc8f90
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue