Merge pull request #222 from unknownbrackets/graphics-fix

Graphics fix
This commit is contained in:
Henrik Rydgård 2012-12-22 02:15:14 -08:00
commit 88ebe02a3f
2 changed files with 2 additions and 2 deletions

View File

@ -1370,7 +1370,7 @@ bool GLES_GPU::InterpretList()
op = Memory::ReadUnchecked_U32(dcontext.pc); //read from memory
u32 cmd = op >> 24;
u32 diff = op ^ gstate.cmdmem[cmd];
if (diff && flushBeforeCommand[cmd])
if (flushBeforeCommand[cmd])
Flush();
gstate.cmdmem[cmd] = op;

View File

@ -281,7 +281,7 @@ char *GenerateVertexShader(int prim)
const char *ambient = (gstate.materialupdate & 1) ? "unlitColor" : "u_matambientalpha.rgb";
const char *diffuse = (gstate.materialupdate & 2) ? "unlitColor" : "u_matdiffuse";
const char *specular = (gstate.materialupdate & 4) ? "unlitColor" : "u_matspecular";
const char *specular = (gstate.materialupdate & 4) ? "unlitColor" : "u_matspecular.rgb";
if (gstate.lightingEnable & 1) {
WRITE(p, " vec4 lightSum0 = vec4(0.0);\n");