This commit is contained in:
Pavel Krajcevski 2014-01-23 14:42:28 -05:00
parent 917c4dc9dd
commit 64747eb828
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class ImageLoader {
uint32 GetChannelForPixel(uint32 x, uint32 y, uint32 ch); uint32 GetChannelForPixel(uint32 x, uint32 y, uint32 ch);
bool LoadFromPixelBuffer(uint32 *data, bool flipY = false); bool LoadFromPixelBuffer(const uint32 *data, bool flipY = false);
public: public:
virtual ~ImageLoader() { virtual ~ImageLoader() {

View File

@ -137,7 +137,7 @@ unsigned int ImageLoader::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) {
return val; return val;
} }
bool ImageLoader::LoadFromPixelBuffer(uint32 *data, bool flipY) { bool ImageLoader::LoadFromPixelBuffer(const uint32 *data, bool flipY) {
m_RedChannelPrecision = 8; m_RedChannelPrecision = 8;
m_GreenChannelPrecision = 8; m_GreenChannelPrecision = 8;
m_BlueChannelPrecision = 8; m_BlueChannelPrecision = 8;