Cope with the sad bastards who have only one texture unit.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@84 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -383,7 +383,7 @@ public class ModelMesh extends TriMesh
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Texture emissiveTex = null;
|
Texture emissiveTex = null;
|
||||||
if (_emissiveMap != null) {
|
if (_emissiveMap != null && TextureState.getNumberOfFixedUnits() >= 2) {
|
||||||
TextureState tstate = tprov.getTexture(_emissiveMap);
|
TextureState tstate = tprov.getTexture(_emissiveMap);
|
||||||
emissiveTex = tstate.getTexture();
|
emissiveTex = tstate.getTexture();
|
||||||
emissiveTex.setApply(Texture.AM_BLEND);
|
emissiveTex.setApply(Texture.AM_BLEND);
|
||||||
|
|||||||
Reference in New Issue
Block a user