diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-04-09 08:21:09 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-04-09 08:21:09 +0200 |
commit | 7b3982eb6518da33ab01c2fbf7ceb45b89f841df (patch) | |
tree | 024d662fb25fb6d22a6ca1eeead6d14966f55543 /glx | |
parent | 03aebed519986c4dd03e02b3b3d4af1f64595ca7 (diff) |
glx: Test the error value, not its address...
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |