Minor preprocessor fix for error message line/string numbers coming from source line, not macro line.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23576 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -38,3 +38,11 @@ void main()
|
||||
// sum should be 321.0
|
||||
gl_Position = vec4(sum);
|
||||
}
|
||||
|
||||
#define ADD(a, b) a + b + ((a) + ((b)));
|
||||
|
||||
float foo()
|
||||
{
|
||||
return ADD(gl_Position.xyxwx, 3.0) // ERROR, should be this line number
|
||||
return ADD(gl_Position.y, 3.0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user