diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-11-11 07:31:56 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-11-11 07:31:58 -0800 |
commit | 60430fb1404410fdeba6eaded1f2b1e4b261f137 (patch) | |
tree | a35ddc5c1bec0cc8e36052e6e0235ce067e6097f | |
parent | 124917aeaa3719566c2b678069173f8cb0a81b5e (diff) |
Don't overwrite the INTEL_DEBUG environment variable
Print a warning and append shader-db's arguments instead
-rwxr-xr-x | run.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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") |