Commit 3bc32a7f authored by Adam Jackson's avatar Adam Jackson 🎧
Browse files

glx: Fix error generation for non-reply vendor private requests



Discarding the return value here is just wrong.
Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 591ac95f
...@@ -2376,8 +2376,7 @@ __glXDisp_VendorPrivate(__GLXclientState * cl, GLbyte * pc) ...@@ -2376,8 +2376,7 @@ __glXDisp_VendorPrivate(__GLXclientState * cl, GLbyte * pc)
__glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info, __glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info,
vendorcode, 0); vendorcode, 0);
if (proc != NULL) { if (proc != NULL) {
(*proc) (cl, (GLbyte *) req); return (*proc) (cl, (GLbyte *) req);
return Success;
} }
cl->client->errorValue = req->vendorCode; cl->client->errorValue = req->vendorCode;
......
...@@ -873,8 +873,7 @@ __glXDispSwap_VendorPrivate(__GLXclientState * cl, GLbyte * pc) ...@@ -873,8 +873,7 @@ __glXDispSwap_VendorPrivate(__GLXclientState * cl, GLbyte * pc)
__glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info, __glXGetProtocolDecodeFunction(&VendorPriv_dispatch_info,
vendorcode, 1); vendorcode, 1);
if (proc != NULL) { if (proc != NULL) {
(*proc) (cl, (GLbyte *) req); return (*proc) (cl, (GLbyte *) req);
return Success;
} }
cl->client->errorValue = req->vendorCode; cl->client->errorValue = req->vendorCode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment