Don't set the other texture buffers for cards that don't support

multi-texturing.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@100 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-12-19 02:22:03 +00:00
parent 871e38149b
commit 8c346c4f4f
@@ -445,7 +445,7 @@ public class ModelMesh extends TriMesh
*/
protected int getTextureCount ()
{
return (_emissiveMap == null) ? 1 : 2;
return (_emissiveMap == null || TextureState.getNumberOfFixedUnits() < 2) ? 1 : 2;
}
/**