VertexBuffer can now be created from Property::Map by initializer list
VertexBuffer constructor takes a vertex format as it's argument, which
is a PropertyMap of key value pairs. Previously, it assumes that the
value is a property type enumeration cast to an INTEGER type.
However, if the Property::Map is instantiated using initializer lists,
e.g.
Property::Map format { {"aPosition", Property::VECTOR2},
{"aColor", Property::VECTOR4}};
VertexBuffer vertexBuffer(format);
then the enum is promoted to a Property::Value of that type, so the
vertex buffer doesn't see INTEGER type and asserts.
Modified the VertexBuffer constructor to utilize the value type
if it's not an INTEGER.
Change-Id: I85bc1d08603c31726eb06d786f44f0ca27a62ce9
Signed-off-by: David Steele <david.steele@samsung.com>