summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-11-11 07:31:56 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2014-11-11 07:31:58 -0800
commit60430fb1404410fdeba6eaded1f2b1e4b261f137 (patch)
treea35ddc5c1bec0cc8e36052e6e0235ce067e6097f
parent124917aeaa3719566c2b678069173f8cb0a81b5e (diff)
Don't overwrite the INTEL_DEBUG environment variable
Print a warning and append shader-db's arguments instead
-rwxr-xr-xrun.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/run.py b/run.py
index 59d5b00..4fc366e 100755
--- a/run.py
+++ b/run.py
@@ -86,7 +86,11 @@ def main():
os.environ["shader_precompile"] = "true"
os.environ["allow_glsl_extension_directive_midshader"] = "true"
- os.environ["INTEL_DEBUG"] = "vs,gs,fs"
+ if "INTEL_DEBUG" in os.environ:
+ print("Warning: INTEL_DEBUG environment variable set!", file=sys.stderr)
+ os.environ["INTEL_DEBUG"] += ",vs,gs,fs"
+ else:
+ os.environ["INTEL_DEBUG"] = "vs,gs,fs"
try:
os.stat("bin/glslparsertest")