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:
Adam Jackson 2017-08-22 12:19:56 -04:00
parent 591ac95f73
commit 3bc32a7f59
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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;