diff --git a/include/Utils/textures.hpp b/include/Utils/textures.hpp index 9d74e6b60dd1994f0faf2b9056bee3b8d5fb2dce..180502c8586ab35f164b5c06865ceb3cccc15821 100644 --- a/include/Utils/textures.hpp +++ b/include/Utils/textures.hpp @@ -358,7 +358,7 @@ bool Image::load(const std::string& filename) TYPE* ptrOut = this->m_data_ptr; for(int i=img.height()-1; i>0; --i) { - memcpy(ptrOut, img.constScanLine(i), 3*img.width()); + memcpy(ptrOut, img.scanLine(i), 3*img.width()); ptrOut += img.width(); // not *3 because type is size of 3 } } @@ -370,7 +370,7 @@ bool Image::load(const std::string& filename) TYPE* ptrOut = this->m_data_ptr; for(int i=img.height()-1; i>0; --i) { - memcpy(ptrOut, img.constScanLine(i), img.width()); + memcpy(ptrOut, img.scanLine(i), img.width()); ptrOut += img.width(); } } @@ -382,7 +382,7 @@ bool Image::load(const std::string& filename) //copy per line for alignment for(int i=ptr->height()-1; i>0; --i) { - memcpy(ptrOut, ptr->constScanLine(i), ptr->width()*bpp); + memcpy(ptrOut, ptr->scanLine(i), ptr->width()*bpp); ptrOut += ptr->width(); } }