projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba6bac
)
updated FX wrapper
author
Daniel Borca
<dborca@users.sourceforge.net>
Tue, 13 Jan 2004 08:24:43 +0000
(08:24 +0000)
committer
Daniel Borca
<dborca@users.sourceforge.net>
Tue, 13 Jan 2004 08:24:43 +0000
(08:24 +0000)
src/mesa/drivers/dos/dmesa.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dos/dmesa.c
b/src/mesa/drivers/dos/dmesa.c
index 5b4f71ad69e6bdd06d8524c2a3c0161549f49f85..2eb260ff30e57390758344fa6d7f1dbc14ce72cc 100644
(file)
--- 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 */
}