summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-05-09 14:34:51 +0900
committerJosé Fonseca <[email protected]>2008-05-09 14:34:51 +0900
commit47f639a62989cea4b3b14cd73bb39de85acec8ea (patch)
treee73cbe38167132d9fce0aed72e663cb6f522e5db /src
parent2268306f58769dff4b2b1da8bb668bdff2856d70 (diff)
gallium: Disable debug_get_option for release builds on Windows.
It always creates the C:\gallium.cfg , even if it does not exists, which might be confusing.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/p_debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/p_debug.c b/src/gallium/auxiliary/util/p_debug.c
index 951dd5a2d4f..ce7fb589562 100644
--- a/src/gallium/auxiliary/util/p_debug.c
+++ b/src/gallium/auxiliary/util/p_debug.c
@@ -154,6 +154,7 @@ debug_get_option(const char *name, const char *dfault)
{
const char *result;
#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY
+#ifdef DEBUG
ULONG_PTR iFile = 0;
const void *pMap = NULL;
const char *sol, *eol, *sep;
@@ -184,6 +185,9 @@ debug_get_option(const char *name, const char *dfault)
EngUnmapFile(iFile);
}
#else
+ result = dfault;
+#endif
+#else
result = getenv(name);
if(!result)