glslang/Test/preprocessor.line.frag
Lei Zhang 5cbc990a0a Fix line number handling in line directive callback.
The line argument passed into the lineCallback function is the
literal value of the first argument of the #line directive.
lastLine in DoPreprocessing() should be updated taking into
consideration the different definitions for #line between specs.

Add a test to reveal the bug.
2015-07-14 14:37:59 -04:00

5 lines
59 B
GLSL

#version 310 es
#line 1 2
#pragma something
void main() {}