From b2533a5ef28ba01005a7c70d99c8a520004bcd07 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 2 Sep 2009 07:59:06 +0000 Subject: Fixed various warning fixes and potencial POD/crash bugs git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4156 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/VertexShaderGen.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Source/Core/VideoCommon') diff --git a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp index aaf984074a..191435b1dd 100644 --- a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp @@ -137,16 +137,18 @@ const char *GenerateVertexShader(u32 components, bool D3D) // inputs if (components & VB_HAS_NRM0) WRITE(p, " float3 rawnorm0 : NORMAL0,\n"); - if (components & VB_HAS_NRM1) - if (D3D) + if (components & VB_HAS_NRM1) { + if (D3D) WRITE(p, " float3 rawnorm1 : NORMAL1,\n"); else WRITE(p, " float3 rawnorm1 : ATTR%d,\n", SHADER_NORM1_ATTRIB); - if (components & VB_HAS_NRM2) - if (D3D) + } + if (components & VB_HAS_NRM2) { + if (D3D) WRITE(p, " float3 rawnorm2 : NORMAL2,\n"); else WRITE(p, " float3 rawnorm2 : ATTR%d,\n", SHADER_NORM2_ATTRIB); + } if (components & VB_HAS_COL0) WRITE(p, " float4 color0 : COLOR0,\n"); if (components & VB_HAS_COL1) @@ -156,14 +158,14 @@ const char *GenerateVertexShader(u32 components, bool D3D) if ((components & (VB_HAS_UV0<