diff --git a/jme3-core/src/main/java/com/jme3/shader/BufferObject.java b/jme3-core/src/main/java/com/jme3/shader/BufferObject.java index d3ca74587..971a7d1f9 100644 --- a/jme3-core/src/main/java/com/jme3/shader/BufferObject.java +++ b/jme3-core/src/main/java/com/jme3/shader/BufferObject.java @@ -46,7 +46,7 @@ public class BufferObject extends NativeObject { protected static VarType getVarTypeByValue(final Object value) { - final VarType varType = CLASS_TO_VAR_TYPE.get(value); + final VarType varType = CLASS_TO_VAR_TYPE.get(value.getClass()); if (varType != null) { return varType; } else if (value instanceof Collection && ((Collection) value).isEmpty()) {