|
@@ -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);
|