From d0d6e5cd2085799d375c4eed08eaaf4401fd5fd4 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 12 Jan 2018 14:49:31 -0500 Subject: [PATCH] Fix glTFViewer after shaderc update Fragment shader outputs now require a location qualifier, that glTFViewer was missing in its shaderc. --- examples/glTFViewer/glTFViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));