Material.preload(): fix incorrect param names being uploaded (w/o prefix)
- This would cause garbage uniforms to be allocated when testing for HW skinning
This commit is contained in:
parent
3a19a2bb12
commit
32e56351df
@ -1056,12 +1056,7 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
|
||||
|
||||
Collection<MatParam> params = paramValues.values();
|
||||
for (MatParam param : params) {
|
||||
if (param instanceof MatParamTexture) {
|
||||
MatParamTexture texParam = (MatParamTexture) param;
|
||||
r.setTexture(0, texParam.getTextureValue());
|
||||
} else {
|
||||
technique.updateUniformParam(param.getName(), param.getVarType(), param.getValue());
|
||||
}
|
||||
param.apply(r, technique);
|
||||
}
|
||||
|
||||
r.setShader(technique.getShader());
|
||||
|
Loading…
x
Reference in New Issue
Block a user