summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-12 13:32:24 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-12 13:32:24 -0700
commitb65861fc32a54d28b3fbbaf0d31bb1d71889f570 (patch)
tree3063465332637bee97e0da86c5180106e157855c /source/slang/emit.cpp
parent0174470593881b5fe6c22594c9df875ab95a6735 (diff)
Use C-style line directives, even for GLSL
- As long as we are always going to pass GLSL through glslang, there should be no harm in this - Eventually we may need to re-enable the old style
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 03cc7d8aa..3a5acd024 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -450,7 +450,17 @@ struct EmitVisitor
emitRawText(" ");
- if(context->shared->target == CodeGenTarget::GLSL)
+ bool shouldUseGLSLStyleLineDirective = false;
+
+ // Let's not do this
+#if 0
+ if (context->shared->target == CodeGenTarget::GLSL)
+ {
+ shouldUseGLSLStyleLineDirective = true;
+ }
+#endif
+
+ if(shouldUseGLSLStyleLineDirective)
{
auto path = sourceLocation.FileName;