Use correct state for lmode

This commit is contained in:
BeaR committed 2013-04-16 19:22:18 +02:00
1 parent c9daf8df7b
commit 8cc3f01b7b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -583,7 +583,7 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
} else {
// Summed color into c0
for (int j = 0; j < 4; j++) {
c0[j] = c0[j] + litColor1[j];
c0[j] = ((c0[j] + litColor1[j]) > 1.0f) ? 1.0f : (c0[j] + litColor1[j]);
}
}
} else {
+2 -2
View File
@@ -101,7 +101,7 @@ struct GPUgstate
offsetx,
offsety,
pad111[2],
lmode,
shademodel,
reversenormals,
pad222,
materialupdate,
@@ -114,7 +114,7 @@ struct GPUgstate
materialspecularcoef,
ambientcolor,
ambientalpha,
colormodel,
lmode,
ltype[4],
lpos[12],
ldir[12],