setOptional method

dynamic setOptional(
  1. dynamic gl,
  2. dynamic object,
  3. dynamic name
)

Implementation

setOptional(gl, object, name) {
  var v = object.getValue(name);
  if (v != null) setValue(gl, name, v);
}