summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-04-09 08:21:09 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-04-09 08:21:09 +0200
commit7b3982eb6518da33ab01c2fbf7ceb45b89f841df (patch)
tree024d662fb25fb6d22a6ca1eeead6d14966f55543 /glx
parent03aebed519986c4dd03e02b3b3d4af1f64595ca7 (diff)
glx: Test the error value, not its address...
Diffstat (limited to 'glx')
-rw-r--r--glx/glxcmds.c2
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);