From 41b862c68926718a8e529cd048fc35c9941a22cf Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 22 Mar 2013 19:59:04 +0100 Subject: [PATCH] warning fixes --- Core/Font/PGF.cpp | 2 +- GPU/GLES/VertexShaderGenerator.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Font/PGF.cpp b/Core/Font/PGF.cpp index eca139eb35..7b28dc0b6f 100644 --- a/Core/Font/PGF.cpp +++ b/Core/Font/PGF.cpp @@ -437,7 +437,7 @@ void PGF::DrawCharacter(u32 base, int bpl, int bufWidth, int bufHeight, int x, i bitPtr += 4; int count; - int value; + int value = 0; if (nibble < 8) { value = getBits(4, fontData, bitPtr); bitPtr += 4; diff --git a/GPU/GLES/VertexShaderGenerator.cpp b/GPU/GLES/VertexShaderGenerator.cpp index 9797d5a440..b5bfd4b006 100644 --- a/GPU/GLES/VertexShaderGenerator.cpp +++ b/GPU/GLES/VertexShaderGenerator.cpp @@ -408,10 +408,12 @@ void GenerateVertexShader(int prim, char *buffer) { break; } if (flipV) + { if (gstate.isModeThrough()) WRITE(p, " v_texcoord.y = 1.0 - v_texcoord.y;\n"); else WRITE(p, " v_texcoord.y = 1.0 - v_texcoord.y * 2.0;\n"); + } } // Compute fogdepth