If you did what Obli said and put GL_BGR in the internal formqat, it won’t work. Internal format should be GL_RGB as in your first post. GL_BGR should be put in the source format, because the actual image data you provide is BGR, not RGB.
Could also be an issue with gluBuild2DMipmaps. Consider using glTexImage instead since it’s more up to date with newer features. If you need mipmapping, use automatic mipmap generation . However, that may not work properly if the image is not a power of two along some dimension and your driver does not support ARB_texture_non_power_of_two or OpenGL 2.0.
Originally posted by Bob: If you did what Obli said and put GL_BGR in the internal formqat, it won’t work. Internal format should be GL_RGB as in your first post. GL_BGR should be put in the source format, because the actual image data you provide is BGR, not RGB.