X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexenv.cpp;h=c1585391bdcddc04ce809f25ce767001a046116f;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hp=3730a7e188606e85bab9e501730665c33eb42cab;hpb=abc16c5ab0fff0945d724febe9d5d3889fb8a6ce;p=libs%2Fgl.git diff --git a/source/texenv.cpp b/source/texenv.cpp index 3730a7e1..c1585391 100644 --- a/source/texenv.cpp +++ b/source/texenv.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "texenv.h" #include "texunit.h" @@ -38,6 +31,11 @@ void TexEnv::bind() const } } +const TexEnv *TexEnv::current() +{ + return TexUnit::current().get_texenv(); +} + void TexEnv::unbind() { if(TexUnit::current().set_texenv(0))