summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxwgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/glide/fxwgl.c')
-rw-r--r--src/mesa/drivers/glide/fxwgl.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mesa/drivers/glide/fxwgl.c b/src/mesa/drivers/glide/fxwgl.c
index 7b323dd6171..adf88a485c6 100644
--- a/src/mesa/drivers/glide/fxwgl.c
+++ b/src/mesa/drivers/glide/fxwgl.c
@@ -324,18 +324,14 @@ wglCreateContext(HDC hdc)
SetWindowLong(hWnd, GWL_WNDPROC, (LONG) __wglMonitor);
}
-#if FX_DEBUG
- /* always log when debugging */
- freopen("MESA.LOG", "w", stderr);
-#else
- /* log only if user wants */
{
- char *env = getenv("MESA_FX_INFO");
- if (env && env[0] == 'r') {
+ char *env;
+ /* always log when debugging, or if user demands */
+#if !FX_DEBUG
+ if ((env = getenv("MESA_FX_INFO")) && env[0] == 'r')
+#endif
freopen("MESA.LOG", "w", stderr);
- }
}
-#endif
{
RECT cliRect;