Skip to content

Commit 7be25db

Browse files
murraystevensonjohnhaddon
authored andcommitted
IECoreGL : Remove trailing semicolons from shaders
These were added with the conversion to raw string literals in cab67a2 and lead to syntax errors when the shaders are compiled on macOS.
1 parent e723a29 commit 7be25db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/IECoreGL/Shader.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ const std::string &Shader::defaultFragmentSource()
10631063
vec3 Nf = faceforward( fragmentN, -fragmentI, fragmentN );
10641064
float f = dot( normalize( fragmentI ), normalize(Nf) );
10651065
gl_FragColor = vec4( f * fragmentCs, 1 );
1066-
};
1066+
}
10671067
10681068
)";
10691069

@@ -1083,7 +1083,7 @@ const std::string &Shader::constantFragmentSource()
10831083
void main()
10841084
{
10851085
gl_FragColor = vec4( fragmentCs, 1 );
1086-
};
1086+
}
10871087
10881088
)";
10891089

@@ -1118,7 +1118,7 @@ const std::string &Shader::lambertFragmentSource()
11181118
vec3 Cdiffuse = ieDiffuse( fragmentP, n, Cl, L, gl_MaxLights );
11191119
11201120
gl_FragColor = vec4( Cdiffuse, 1.0 );
1121-
};
1121+
}
11221122
11231123
)";
11241124

0 commit comments

Comments
 (0)