X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexunit.cpp;h=4d71e3b9492674a3a3e0f1712d6d45d526c679bb;hb=7b956c7f992e37dddd279df0382c2fb94864cb73;hp=4d5ff81a297dc9f4d3b1f5dfb564111a3257ecbb;hpb=abc16c5ab0fff0945d724febe9d5d3889fb8a6ce;p=libs%2Fgl.git diff --git a/source/texunit.cpp b/source/texunit.cpp index 4d5ff81a..4d71e3b9 100644 --- a/source/texunit.cpp +++ b/source/texunit.cpp @@ -1,10 +1,4 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - +#include #include "extension.h" #include "gl.h" #include "texunit.h" @@ -55,7 +49,7 @@ unsigned TexUnit::get_n_units() TexUnit &TexUnit::activate(unsigned n) { if(n>=get_n_units()) - throw InvalidParameterValue("Invalid texture unit number"); + throw out_of_range("TexUnit::activate"); if(units.size()<=n) units.resize(n+1);