]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Rework exceptions
[libs/gl.git] / source / font.cpp
index 88780331fd10b8144dd6f9cbbce562df4c191634..33c1584b53ab4ed5712b9ee876b101ecc8d581c4 100644 (file)
@@ -26,7 +26,7 @@ void Font::set_texture(const Texture2D &t)
 const Texture2D &Font::get_texture() const
 {
        if(!texture)
-               throw InvalidState("No texture");
+               throw logic_error("No texture");
        return *texture;
 }