mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
glx: Add missing null check in DRI2WireToEvent
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e84a1ab3c4
commit
84b1716b5e
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
|
|||
__GLXDRIdrawable *pdraw;
|
||||
|
||||
pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable);
|
||||
if (pdraw == NULL)
|
||||
return False;
|
||||
|
||||
/* Ignore swap events if we're not looking for them */
|
||||
aevent->type = dri2GetSwapEventType(dpy, awire->drawable);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue