From 00674736feabe8ca2117d4ce0d615bb995346162 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Mon, 8 Feb 2016 20:42:09 -0500 Subject: [PATCH] Fix minor syntax error in shaders. Discovered with glslangValidator. --- src/xenia/gpu/glsl_shader_translator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/glsl_shader_translator.cc b/src/xenia/gpu/glsl_shader_translator.cc index da3b3031c..cf7b9e1a9 100644 --- a/src/xenia/gpu/glsl_shader_translator.cc +++ b/src/xenia/gpu/glsl_shader_translator.cc @@ -179,7 +179,7 @@ vec4 cube(vec4 src0, vec4 src1) { float s = (sc / ma + 1.0) / 2.0; float t = (tc / ma + 1.0) / 2.0; return vec4(t, s, 2.0 * ma, float(face_id)); -}; +} )"); if (is_vertex_shader()) { @@ -234,7 +234,7 @@ vec4 applyTransform(const in StateData state, vec4 pos) { pos.xyz = mix(pos.xyz, pos.xyz / pos.w, notEqual(state.vtx_fmt.xyz, vec3(0.0))); pos.xy *= state.window_scale.xy; return pos; -}; +} void processVertex(const in StateData state); void main() { gl_Position = vec4(0.0, 0.0, 0.0, 1.0);