summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dos
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dos')
-rw-r--r--src/mesa/drivers/dos/dmesa.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dos/dmesa.c b/src/mesa/drivers/dos/dmesa.c
index 2eb260ff30..33c17c144e 100644
--- a/src/mesa/drivers/dos/dmesa.c
+++ b/src/mesa/drivers/dos/dmesa.c
@@ -1115,6 +1115,15 @@ DMesaVisual DMesaCreateVisual (GLint width,
freopen("MESA.LOG", "w", stderr);
}
+ if (((env = getenv("FX_GLIDE_REFRESH")) == NULL) || !atoi(env)) {
+ /* FX_GLIDE_REFRESH=0 has a special meaning for DJGPP Glide3x
+ * (switch via VESA, using default refresh) and we'll not override that.
+ */
+ char tmp[256];
+ sprintf(tmp, "FX_GLIDE_REFRESH=%u", refresh);
+ putenv(tmp);
+ }
+
return (DMesaVisual)fxMesaCreateBestContext(-1, width, height, fx_attrib);
#endif /* FX */
}