Improve error message when shader uniform is not set

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10650 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
iwg..ic 12 years ago
parent daa3ceee1d
commit eda3ed7160
  1. 3
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -678,7 +678,8 @@ public class OGLESShaderRenderer implements Renderer {
} }
if (uniform.getVarType() == null) { if (uniform.getVarType() == null) {
logger.warning("value is not set yet."); logger.log(Level.WARNING, "Uniform value is not set yet. Shader: {0}, Uniform: {1}",
new Object[]{shader.toString(), uniform.toString()});
return; // value not set yet.. return; // value not set yet..
} }

Loading…
Cancel
Save