glx: Getting rid of the double assignment in __glXWireToEvent.

Previously the field `event_type` in `GLXPbufferClobberEvent`
was assigned twice in succession with different values.
Removing the first assignment and retaining only the second one.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30836>
This commit is contained in:
Yunhyeok "Yune" Choi
2024-08-25 12:53:29 +00:00
committed by Marge Bot
parent 4bf257a18f
commit 27014df366

View File

@@ -140,9 +140,8 @@ __glXWireToEvent(Display *dpy, XEvent *event, xEvent *wire)
{
GLXPbufferClobberEvent *aevent = (GLXPbufferClobberEvent *)event;
xGLXPbufferClobberEvent *awire = (xGLXPbufferClobberEvent *)wire;
aevent->event_type = awire->type;
aevent->serial = awire->sequenceNumber;
aevent->event_type = awire->event_type;
aevent->serial = awire->sequenceNumber;
aevent->draw_type = awire->draw_type;
aevent->drawable = awire->drawable;
aevent->buffer_mask = awire->buffer_mask;