summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dos
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-01-15 07:16:06 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-01-15 07:16:06 +0000
commit4d5e6623d36183b9c0380aa5da8fa37a979ce441 (patch)
tree2347e89e095ee766e5d9fc6c3efe9d46a4d85226 /src/mesa/drivers/dos
parent3663c0f82527d972a7e5b85937d8da60253eb6f3 (diff)
_mesa_delete_texture_object and some other updates
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 */
}