Browse Source

Use array delete operator for deleting array.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
ba4dec8ec0
  1. 2
      src/Image.h

2
src/Image.h

@ -107,7 +107,7 @@ template<size_t imageDimensions> class Image: public AbstractImage {
* data are not copied, but they are deleted on destruction. * data are not copied, but they are deleted on destruction.
*/ */
void setData(const Math::Vector<Dimensions, GLsizei>& dimensions, Components components, ComponentType type, GLvoid* data) { void setData(const Math::Vector<Dimensions, GLsizei>& dimensions, Components components, ComponentType type, GLvoid* data) {
delete _data; delete[] _data;
_components = components; _components = components;
_type = type; _type = type;
_dimensions = dimensions; _dimensions = dimensions;

Loading…
Cancel
Save