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.
This commit is contained in:
@@ -154,6 +154,7 @@ debug_get_option(const char *name, const char *dfault)
|
|||||||
{
|
{
|
||||||
const char *result;
|
const char *result;
|
||||||
#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY
|
#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY
|
||||||
|
#ifdef DEBUG
|
||||||
ULONG_PTR iFile = 0;
|
ULONG_PTR iFile = 0;
|
||||||
const void *pMap = NULL;
|
const void *pMap = NULL;
|
||||||
const char *sol, *eol, *sep;
|
const char *sol, *eol, *sep;
|
||||||
@@ -183,6 +184,9 @@ debug_get_option(const char *name, const char *dfault)
|
|||||||
}
|
}
|
||||||
EngUnmapFile(iFile);
|
EngUnmapFile(iFile);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
result = dfault;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|
||||||
result = getenv(name);
|
result = getenv(name);
|
||||||
|
Reference in New Issue
Block a user