1. Jason McKesson
  2. Unofficial OpenGL SDK
  3. Issues
Issue #57 wontfix

Images are loaded upside down

Michael Morandi
created an issue

I have problems that images appear flipped in my app, I already think to know why:

ImageCreator::SetImageData has a flag "isTopLeft" to indicate whether the first pixel coresponds with the top left position of the image.

If isTopLeft == true, the image is loaded using CopyImageFlipped, otherwise with a regular memcpy. Shouldn't this be the opposite?

Btw: the same occurs in ImageCreator::SetFullMipmapLevel as well

Comments (1)

  1. Jason McKesson repo owner

    Not a bug. OpenGL uses a bottom-left coordinate system for textures. So if the image data you give it puts the top-left first, then we have to flip it over to match OpenGL's conventions.

  2. Log in to comment