glx: Test the error value, not its address...
This commit is contained in:
parent
03aebed519
commit
7b3982eb65
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user