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

This commit is contained in:
shadowislord 2015-02-24 21:52:00 -05:00
parent fd0832af98
commit 3a19a2bb12

View File

@ -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();