+ log_debug("texture detected; loading flipped");
+ for (int i = 0; i < height_; ++i)
+ {
+ rows[height_-1-i] = (png_bytep)(pixels_ +
+ i * channels_ * width_);
+ }
+ }
+ else
+ {
+ log_debug("no texture attributes found");
+ for (int i = 0; i < height_; ++i)
+ {
+ rows[i] = (png_bytep)(pixels_ +
+ i * channels_ * width_);
+ }