mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 01:59:56 +00:00
DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user