Currently TextureObject::generate uses assert to check that the texture object was created successfully. However, since generating a texture object could fail at runtime even if the programmer does everything correct, it should really check it and throw an exception instead.
Currently
TextureObject::generate
usesassert
to check that the texture object was created successfully. However, since generating a texture object could fail at runtime even if the programmer does everything correct, it should really check it and throw an exception instead.