-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <stdexcept>
#include "extension.h"
#include "gl.h"
#include "texunit.h"
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);