mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-13 16:45:46 +00:00
Merge pull request #5719 from unknownbrackets/gpu-minor
Don't calculate lighting when not enabled (software transform)
This commit is contained in:
commit
9ba51adb89
@ -398,11 +398,12 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
|
||||
} else {
|
||||
unlitColor = Vec4f::FromRGBA(gstate.getMaterialAmbientRGBA());
|
||||
}
|
||||
float litColor0[4];
|
||||
float litColor1[4];
|
||||
lighter.Light(litColor0, litColor1, unlitColor.AsArray(), out, normal);
|
||||
|
||||
if (gstate.isLightingEnabled()) {
|
||||
float litColor0[4];
|
||||
float litColor1[4];
|
||||
lighter.Light(litColor0, litColor1, unlitColor.AsArray(), out, normal);
|
||||
|
||||
// Don't ignore gstate.lmode - we should send two colors in that case
|
||||
for (int j = 0; j < 4; j++) {
|
||||
c0[j] = litColor0[j];
|
||||
|
Loading…
Reference in New Issue
Block a user