aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dos/video.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-02-07 10:54:36 +0000
committerDaniel Borca <[email protected]>2004-02-07 10:54:36 +0000
commitd039b43e3074d14193944408ef211a9abf10608b (patch)
treee2f29f73426a37a6ce8d8dcd19e6b52ad8f9e8fb /src/mesa/drivers/dos/video.c
parent07d6a983595b7ee52c8448fc579d952ce36472b8 (diff)
added NUL driver for DMesa
Diffstat (limited to 'src/mesa/drivers/dos/video.c')
-rw-r--r--src/mesa/drivers/dos/video.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dos/video.c b/src/mesa/drivers/dos/video.c
index 41903ebe799..d3774e7c3e4 100644
--- a/src/mesa/drivers/dos/video.c
+++ b/src/mesa/drivers/dos/video.c
@@ -38,6 +38,7 @@
#include "internal.h"
#include "vesa.h"
#include "vga.h"
+#include "null.h"
#include "video.h"
@@ -428,6 +429,13 @@ static vl_mode *v_init_hw (void)
static vl_mode *q = NULL;
if (q == NULL) {
+ /* are we forced to NUL driver? */
+ if (getenv("DMESA_NULDRV")) {
+ if ((q = NUL.init()) != NULL) {
+ drv = &NUL;
+ }
+ return q;
+ }
/* initialize hardware */
if ((q = VESA.init()) != NULL) {
drv = &VESA;