Light attribute should not depend on colour

Light attribute makes sure that we have color, but at the time of check, hasColour is false, because nothing has operated yet. We want to check the context flag instead. (We could just not check this color flag at all, and leave the two actually 'separate')
This commit is contained in:
MrTJP committed 2014-06-15 11:26:19 -04:00
1 parent 09bf91715b
commit 1680d74d6d
1 file changed
+1 -1
@@ -190,7 +190,7 @@ public class CCRenderState
@Override
public boolean load() {
if(!computeLighting || !hasColour || !model.hasAttribute(this))
if(!computeLighting || !useColour || !model.hasAttribute(this))
return false;
colourRef = model.getAttributes(this);