summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxwgl.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-01-15 07:16:06 +0000
committerDaniel Borca <[email protected]>2004-01-15 07:16:06 +0000
commit4d5e6623d36183b9c0380aa5da8fa37a979ce441 (patch)
tree2347e89e095ee766e5d9fc6c3efe9d46a4d85226 /src/mesa/drivers/glide/fxwgl.c
parent3663c0f82527d972a7e5b85937d8da60253eb6f3 (diff)
_mesa_delete_texture_object and some other updates
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;