Added protected destrcutor to TemplateArray.

This commit is contained in:
Robert Osfield
2002-07-16 10:16:34 +00:00
parent 8a14aa29cd
commit 7cf7d8fadb

View File

@@ -102,6 +102,10 @@ class TemplateArray : public Array, public std::vector<T>
virtual void accept(ArrayVisitor& av) { av.apply(*this); }
virtual const GLvoid* dataPointer() const { if (!empty()) return &front(); else return 0; }
protected:
virtual ~Array() {}
};
typedef TemplateArray<GLbyte,Array::ByteArrayType,1,GL_BYTE> ByteArray;