From: Mikko Rasa Date: Fri, 16 May 2014 18:39:46 +0000 (+0300) Subject: TexUnit's constructor shouldn't be public X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=287138704b0cdfc2f9d2064ad3f86bd2d8395b41;p=libs%2Fgl.git TexUnit's constructor shouldn't be public --- diff --git a/source/texunit.cpp b/source/texunit.cpp index 714b6502..fd36a4f1 100644 --- a/source/texunit.cpp +++ b/source/texunit.cpp @@ -82,7 +82,7 @@ TexUnit &TexUnit::get_unit(unsigned n) if(units.size()<=n) { unsigned i = units.size(); - units.resize(n+1); + units.resize(n+1, TexUnit()); for(; i units; static TexUnit *cur_unit; -public: TexUnit(); +public: unsigned get_index() const { return index; } bool set_texture(const Texture *); const Texture *get_texture() const { return texture; }