Don't crash if SW cursor

In case of device option or hw cursor allocation fails.
This commit is contained in:
Zhenyu Wang 2008-01-31 18:26:46 +08:00
parent 2e43bec873
commit aa3ac79759
1 changed files with 2 additions and 1 deletions

View File

@ -1946,7 +1946,8 @@ i830_bind_all_memory(ScrnInfoPtr pScrn)
}
#endif
}
i830_update_cursor_offsets(pScrn);
if (!pI830->SWCursor)
i830_update_cursor_offsets(pScrn);
return TRUE;
}