X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturing.cpp;h=880f3f0751a40df642d4b7d713d3497c94476da2;hb=8b8361a2bb9bb377f222408ec59422bd33cfd64f;hp=69c2b3ca55cdae1ff6df19a9227b7d4ddbfa24bf;hpb=abc16c5ab0fff0945d724febe9d5d3889fb8a6ce;p=libs%2Fgl.git diff --git a/source/texturing.cpp b/source/texturing.cpp index 69c2b3ca..880f3f07 100644 --- a/source/texturing.cpp +++ b/source/texturing.cpp @@ -1,15 +1,10 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "texenv.h" #include "texture.h" #include "texturing.h" #include "texunit.h" +using namespace std; + namespace Msp { namespace GL { @@ -37,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);