diff options
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 12 |
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; |
