diff --git a/IO/config/ImageLoader.h.in b/IO/config/ImageLoader.h.in index 3d9e363..b65d23b 100644 --- a/IO/config/ImageLoader.h.in +++ b/IO/config/ImageLoader.h.in @@ -94,7 +94,7 @@ class ImageLoader { uint32 GetChannelForPixel(uint32 x, uint32 y, uint32 ch); - bool LoadFromPixelBuffer(uint32 *data, bool flipY = false); + bool LoadFromPixelBuffer(const uint32 *data, bool flipY = false); public: virtual ~ImageLoader() { diff --git a/IO/src/ImageLoader.cpp b/IO/src/ImageLoader.cpp index 37df083..b65bb94 100644 --- a/IO/src/ImageLoader.cpp +++ b/IO/src/ImageLoader.cpp @@ -137,7 +137,7 @@ unsigned int ImageLoader::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) { return val; } -bool ImageLoader::LoadFromPixelBuffer(uint32 *data, bool flipY) { +bool ImageLoader::LoadFromPixelBuffer(const uint32 *data, bool flipY) { m_RedChannelPrecision = 8; m_GreenChannelPrecision = 8; m_BlueChannelPrecision = 8;