warning fixes

This commit is contained in:
Henrik Rydgard 2013-03-22 19:59:04 +01:00
parent 10a1d00f80
commit 41b862c689
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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