X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ffont.cpp;fp=source%2Ffont.cpp;h=33c1584b53ab4ed5712b9ee876b101ecc8d581c4;hp=88780331fd10b8144dd6f9cbbce562df4c191634;hb=2e7f19b895424c3a77940e648639f8df2b395d0f;hpb=97e1aa9b5d2bacd3f1dddf2d1889f2714e36b766 diff --git a/source/font.cpp b/source/font.cpp index 88780331..33c1584b 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -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; }