glx: Test the error value, not its address...
This commit is contained in:
@@ -144,7 +144,7 @@ validGlxContext(ClientPtr client, XID id, int access_mode,
|
|||||||
{
|
{
|
||||||
*err = dixLookupResourceByType((pointer *) context, id,
|
*err = dixLookupResourceByType((pointer *) context, id,
|
||||||
__glXContextRes, client, access_mode);
|
__glXContextRes, client, access_mode);
|
||||||
if (err != Success) {
|
if (*err != Success) {
|
||||||
client->errorValue = id;
|
client->errorValue = id;
|
||||||
if (*err == BadValue)
|
if (*err == BadValue)
|
||||||
*err = __glXError(GLXBadContext);
|
*err = __glXError(GLXBadContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user