Boolean uniforms are now updatable by properties

This commit is contained in:
Frederic Bouvier 2012-01-15 15:58:37 +01:00
parent cbf8687e3d
commit 66c9187c95

View File

@ -961,6 +961,11 @@ struct UniformBuilder :public PassAttributeBuilder
uniform->setName(name);
uniform->setType(uniformType);
switch (uniformType) {
case Uniform::BOOL:
initFromParameters(effect, valProp, uniform.get(),
static_cast<bool (Uniform::*)(bool)>(&Uniform::set),
options);
break;
case Uniform::FLOAT:
initFromParameters(effect, valProp, uniform.get(),
static_cast<bool (Uniform::*)(float)>(&Uniform::set),