DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL.
This commit is contained in:
parent
e5271c3747
commit
24928b85dc
|
@ -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…
Reference in New Issue