X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexturing.cpp;h=880f3f0751a40df642d4b7d713d3497c94476da2;hp=425c710ca4d1357d2627995b02f0fc8040f21d86;hb=2e7f19b895424c3a77940e648639f8df2b395d0f;hpb=97e1aa9b5d2bacd3f1dddf2d1889f2714e36b766 diff --git a/source/texturing.cpp b/source/texturing.cpp index 425c710c..880f3f07 100644 --- a/source/texturing.cpp +++ b/source/texturing.cpp @@ -3,6 +3,8 @@ #include "texturing.h" #include "texunit.h" +using namespace std; + namespace Msp { namespace GL { @@ -30,7 +32,7 @@ void Texturing::detach(unsigned attch) void Texturing::set_attachment(unsigned attch, const Texture *tex, const TexEnv *env) { if(attch>=TexUnit::get_n_units()) - throw InvalidParameterValue("Invalid texture attachment"); + throw out_of_range("Texturing::set_attachment"); if(attachments.size()<=attch) attachments.resize(attch+1);