dmuratshin 9 years ago
parent
commit
485fbca932
1 changed files with 1 additions and 0 deletions
  1. 1 0
      oxygine/src/Image.cpp

+ 1 - 0
oxygine/src/Image.cpp

@@ -812,6 +812,7 @@ namespace oxygine
 
 
     void Image::toPOT(Image& dest)
     void Image::toPOT(Image& dest)
     {
     {
+		OX_ASSERT(this != &dest);
         dest.init(nextPOT(_image.w), nextPOT(_image.h), _image.format);
         dest.init(nextPOT(_image.w), nextPOT(_image.h), _image.format);
         dest.fill_zero();
         dest.fill_zero();
         dest.updateRegion(0, 0, _image);
         dest.updateRegion(0, 0, _image);