From 1c48b93ffdbe0043303519178f4944d80cbe6891 Mon Sep 17 00:00:00 2001 From: DrChat Date: Sat, 11 Feb 2017 21:53:52 -0600 Subject: [PATCH] Vulkan: Fix misplaced break statements --- src/xenia/gpu/spirv_shader_translator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/spirv_shader_translator.cc b/src/xenia/gpu/spirv_shader_translator.cc index 2b318ff46..0d287b504 100644 --- a/src/xenia/gpu/spirv_shader_translator.cc +++ b/src/xenia/gpu/spirv_shader_translator.cc @@ -241,8 +241,8 @@ void SpirvShaderTranslator::StartTranslation() { case VertexFormat::k_32_32: if (is_integer) { attrib_type = is_signed ? vec2_int_type_ : vec2_uint_type_; + break; } - break; case VertexFormat::k_16_16_FLOAT: case VertexFormat::k_32_32_FLOAT: attrib_type = vec2_float_type_; @@ -258,8 +258,8 @@ void SpirvShaderTranslator::StartTranslation() { case VertexFormat::k_32_32_32_32: if (is_integer) { attrib_type = is_signed ? vec4_int_type_ : vec4_uint_type_; + break; } - break; case VertexFormat::k_16_16_16_16_FLOAT: case VertexFormat::k_32_32_32_32_FLOAT: attrib_type = vec4_float_type_;