summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nv_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 795859f..f60b6d9 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -794,6 +794,10 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
pScrn->depth);
}
+ /* No usable mode */
+ if (!pScrn->modes)
+ return FALSE;
+
/* Set the current mode to the first in the list */
pScrn->currentMode = pScrn->modes;