Revert "glx: Fix synthetic error generation in __glXSendError"
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 May 2019 03:55:32 +0000 (13:55 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 May 2019 03:16:44 +0000 (13:16 +1000)
This reverts commit e91ee763c378d03883eb88cf0eadd8aa916f7878.

This seems to have broken a number of wine games. Lets revert
everything for now and try again later.

Acked-by: Adam Jackson <ajax@redhat.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110632
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110590

src/glx/glx_error.c

index 712ecf8213dfc15e1b95e9b5f54f78a5f785c1ea..653cbeb2d2a32a3504e1f383923e99cfe6468334 100644 (file)
@@ -54,7 +54,7 @@ __glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID,
       error.errorCode = glx_dpy->codes->first_error + errorCode;
    }
 
-   error.sequenceNumber = dpy->last_request_read;
+   error.sequenceNumber = dpy->request;
    error.resourceID = resourceID;
    error.minorCode = minorCode;
    error.majorCode = glx_dpy->majorOpcode;
@@ -73,7 +73,7 @@ __glXSendErrorForXcb(Display * dpy, const xcb_generic_error_t *err)
 
    error.type = X_Error;
    error.errorCode = err->error_code;
-   error.sequenceNumber = dpy->last_request_read;
+   error.sequenceNumber = err->sequence;
    error.resourceID = err->resource_id;
    error.minorCode = err->minor_code;
    error.majorCode = err->major_code;