Added initialization of tex index in the constructor of texcoord

This commit is contained in:
Paolo Cignoni 2010-06-16 10:27:38 +00:00
parent 2e22f9b51d
commit 044412a099
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ private:
short _n[NMAX]; short _n[NMAX];
public: public:
TexCoord2(T u, T v) { _t[0][0]=u; _t[0][1]=v; }; TexCoord2(T u, T v) { if(NMAX>0) _n[0]=0; _t[0][0]=u; _t[0][1]=v; };
TexCoord2() { }; TexCoord2() { };
inline const PointType &P() const { return _t[0]; }; inline const PointType &P() const { return _t[0]; };