X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexunit.cpp;h=622599a213d2481acba6707e573286b0d4145f9d;hp=7aced5cc3ba2ab182a4c5e37ce6b37f42e6e21a6;hb=50e504e2171295d5922ddf87b358e0024db3ce40;hpb=dc1d1159a61f378bda11e5989ad694a86b9a3c77 diff --git a/source/texunit.cpp b/source/texunit.cpp index 7aced5cc..622599a2 100644 --- a/source/texunit.cpp +++ b/source/texunit.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -27,6 +27,13 @@ bool TexUnit::set_texture(const Texture *tex) return result; } +bool TexUnit::set_texenv(const TexEnv *env) +{ + bool result=(texenv!=env); + texenv=env; + return result; +} + TexUnit &TexUnit::activate(unsigned n) { if(units.size()<=n)