Commit 63ab534c authored by Felix Rath's avatar Felix Rath

fix unsigned signed comparison error

parent 7e8af607
......@@ -248,7 +248,7 @@ SharedTextureData loadTextureDataFromLodepng(const std::string &_filename)
// LodePNG decodes 16 bit PNGs in big endian format ==> Convert
#ifndef ACGL_BIG_ENDIAN
if(bitdepth == 16)
for(int i = 0; i < (width * height * channels * 2); i += 2)
for(unsigned int i = 0; i < (width * height * channels * 2); i += 2)
std::swap(image[i], image[i+1]);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment