mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
SW transform: Don't initialize Lighter if lighting is disabled.
This commit is contained in:
1 parent
f9344b5557
commit
1d545f3e6b
1 file changed
+3
@@ -69,6 +69,9 @@ private:
|
||||
};
|
||||
|
||||
Lighter::Lighter(int vertType) {
|
||||
if (!gstate.isLightingEnabled())
|
||||
return;
|
||||
|
||||
doShadeMapping_ = gstate.getUVGenMode() == GE_TEXMAP_ENVIRONMENT_MAP;
|
||||
materialEmissive.GetFromRGB(gstate.materialemissive);
|
||||
materialEmissive.a = 0.0f;
|
||||
|
||||
Reference in new issue
Block a user