adbrown85 / gloop

Lightweight C++ wrapper for OpenGL
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

TextureObject::generate() should not use assert #71

Closed adbrown85 closed 11 years ago

adbrown85 commented 11 years ago

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.