currently if name is nullptr it will implicitly construct a temporary std::string from the call to shader->This.setUniform such as this function and passing nullptr to std::string is UB see 9th constructor so an assertion to check if name is null would help prevent UB in debug builds.
currently if
nameis nullptr it will implicitly construct a temporarystd::stringfrom the call to shader->This.setUniform such as this function and passing nullptr tostd::stringis UB see 9th constructor so an assertion to check if name is null would help prevent UB in debug builds.