diff --git a/glx/glxcmds.c b/glx/glxcmds.c index d2e739325..e21f0f098 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -144,7 +144,7 @@ validGlxContext(ClientPtr client, XID id, int access_mode, { *err = dixLookupResourceByType((pointer *) context, id, __glXContextRes, client, access_mode); - if (err != Success) { + if (*err != Success) { client->errorValue = id; if (*err == BadValue) *err = __glXError(GLXBadContext);