mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 17:50:12 +01:00
DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL.
This commit is contained in:
parent
e5271c3747
commit
24928b85dc
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ DRI2ClipNotify(WindowPtr pWin, int dx, int dy)
|
|||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||
DRI2DrawablePtr dd = DRI2GetDrawable(&pWin->drawable);
|
||||
|
||||
if (ds->lastSequence < dd->pendingSequence && ds->Wait)
|
||||
if (dd && ds->lastSequence < dd->pendingSequence && ds->Wait)
|
||||
ds->Wait(pWin, dd->pendingSequence);
|
||||
|
||||
if (ds->ClipNotify) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue