From 287138704b0cdfc2f9d2064ad3f86bd2d8395b41 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 16 May 2014 21:39:46 +0300 Subject: [PATCH] TexUnit's constructor shouldn't be public --- source/texunit.cpp | 2 +- source/texunit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.45.2