Type safety, redundant case removal, other cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@490 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -99,13 +99,13 @@ public abstract class ShaderConfig
|
||||
other._state.uniforms.put(uniform.name, (ShaderUniform)uniform.clone());
|
||||
}
|
||||
if (_lights != null) {
|
||||
other._lights = (LightConfig[])_lights.clone();
|
||||
other._lights = _lights.clone();
|
||||
for (int ii = 0; ii < _lights.length; ii++) {
|
||||
other._lights[ii] = (LightConfig)_lights[ii].clone();
|
||||
}
|
||||
}
|
||||
if (_textures != null) {
|
||||
other._textures = (TextureConfig[])_textures.clone();
|
||||
other._textures = _textures.clone();
|
||||
for (int ii = 0; ii < _textures.length; ii++) {
|
||||
other._textures[ii] = (TextureConfig)_textures[ii].clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user