DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL.

This commit is contained in:
Michel Dänzer 2008-11-15 13:28:53 +01:00
parent e5271c3747
commit 24928b85dc

View File

@ -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) {