summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dos
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-01-13 08:24:43 +0000
committerDaniel Borca <[email protected]>2004-01-13 08:24:43 +0000
commit66304ec6d12350073a339a54d308d625c3923125 (patch)
treeeb18fe9fb7a474c9a823b20390f532568d203547 /src/mesa/drivers/dos
parenteba6bacc88461a7d4083cdd1d4799c7d37307a44 (diff)
updated FX wrapper
Diffstat (limited to 'src/mesa/drivers/dos')
-rw-r--r--src/mesa/drivers/dos/dmesa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dos/dmesa.c b/src/mesa/drivers/dos/dmesa.c
index 5b4f71ad69e..2eb260ff30e 100644
--- a/src/mesa/drivers/dos/dmesa.c
+++ b/src/mesa/drivers/dos/dmesa.c
@@ -1095,6 +1095,7 @@ DMesaVisual DMesaCreateVisual (GLint width,
#else /* FX */
+ char *env;
int i = 0, fx_attrib[32];
if (!rgbFlag) {
@@ -1110,6 +1111,10 @@ DMesaVisual DMesaCreateVisual (GLint width,
fx_attrib[i++] = colDepth;
fx_attrib[i] = FXMESA_NONE;
+ if ((env = getenv("MESA_FX_INFO")) && (env[0] == 'r')) {
+ freopen("MESA.LOG", "w", stderr);
+ }
+
return (DMesaVisual)fxMesaCreateBestContext(-1, width, height, fx_attrib);
#endif /* FX */
}