Complete hook up all the compile/link errors to the command-line exit status. (Also, an updated test left from the last check-in.)

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23961 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-11-07 23:33:24 +00:00
parent b0a7eb599b
commit c999ba2816
5 changed files with 43 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ vec4 gl_Color; // ERROR, storage
#extension GL_ARB_texture_gather : warn
void bar()
void bar2()
{
vec4 s = textureGather(sampC, vec3(0.2));
}

View File

@@ -3,9 +3,8 @@ ERROR: 0:25: 'texture gather function' : not supported for this version or the e
ERROR: 0:35: 'redeclaration' : cannot change the type of gl_Color
ERROR: 0:38: 'gl_Color' : redeclaring non-array as array
ERROR: 0:39: 'redeclaration' : cannot change storage, memory, or auxiliary qualification of gl_Color
ERROR: 0:43: 'bar' : function already has a body
WARNING: 0:45: extension GL_ARB_texture_gather is being used for texture gather function
ERROR: 5 compilation errors. No code generated.
ERROR: 4 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:16 Function Definition: main( (void)
@@ -42,7 +41,7 @@ ERROR: node is still EOpNull!
0:32 0.200000
0:32 0.200000
0:32 0.200000
0:43 Function Definition: bar( (void)
0:43 Function Definition: bar2( (void)
0:43 Function Parameters:
0:45 Sequence
0:45 Sequence