glx: Fix error generation for non-reply vendor private requests
Discarding the return value here is just wrong. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
591ac95f73
commit
3bc32a7f59
|
@ -2376,8 +2376,7 @@ __glXDisp_VendorPrivate(__GLXclientState * cl, GLbyte * pc)
|
|||
__glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info,
|
||||
vendorcode, 0);
|
||||
if (proc != NULL) {
|
||||
(*proc) (cl, (GLbyte *) req);
|
||||
return Success;
|
||||
return (*proc) (cl, (GLbyte *) req);
|
||||
}
|
||||
|
||||
cl->client->errorValue = req->vendorCode;
|
||||
|
|
|
@ -873,8 +873,7 @@ __glXDispSwap_VendorPrivate(__GLXclientState * cl, GLbyte * pc)
|
|||
__glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info,
|
||||
vendorcode, 1);
|
||||
if (proc != NULL) {
|
||||
(*proc) (cl, (GLbyte *) req);
|
||||
return Success;
|
||||
return (*proc) (cl, (GLbyte *) req);
|
||||
}
|
||||
|
||||
cl->client->errorValue = req->vendorCode;
|
||||
|
|
Loading…
Reference in New Issue
Block a user