diff --git a/examples/glTFViewer/glTFViewer.cpp b/examples/glTFViewer/glTFViewer.cpp index dc94faa1ba..29f87e07cd 100644 --- a/examples/glTFViewer/glTFViewer.cpp +++ b/examples/glTFViewer/glTFViewer.cpp @@ -208,7 +208,7 @@ namespace { layout(location = 0) in vec3 v_normal; layout(location = 1) in vec2 v_texcoord; - out vec4 fragcolor; + layout(location = 0) out vec4 fragcolor; void main() { const vec3 lightdir = normalize(vec3(-1, -2, 3)); @@ -224,7 +224,7 @@ namespace { layout(location = 0) in vec3 v_normal; layout(location = 1) in vec2 v_texcoord; - out vec4 fragcolor; + layout(location = 0) out vec4 fragcolor; void main() { const vec3 lightdir = normalize(vec3(-1, -2, 3));