Program::UsedProgram::setTexture is supposed to allow nullptr as an argument, but previously crashed when it was passed.
Program::UsedProgram::setTexture
nullptr