Shader: make sure uniform name starts with either m_ or g_

experimental
shadowislord 10 years ago
parent fd0832af98
commit 3a19a2bb12
  1. 1
      jme3-core/src/main/java/com/jme3/shader/Shader.java

@ -241,6 +241,7 @@ public final class Shader extends NativeObject {
}
public Uniform getUniform(String name){
assert name.startsWith("m_") || name.startsWith("g_");
Uniform uniform = uniforms.get(name);
if (uniform == null){
uniform = new Uniform();

Loading…
Cancel
Save