Hi All,
Working my way through the OpenGL init portion of the episodes and could use some help understanding some colour space intriacies.
Essentially when I set the expected texture format to GL_SRGB8_ALPHA8 my textures appear differently and I don't understand why.
Here is my current understanding of things:
- The texture (standard .bmp file) was created in sRGB colour space with GIMP
- The texture is opaque, so there shouldn't be any gamma correction or blending noise affecting the result
- Static monitor display profile
When I pass GL_SRGB8_ALPHA8 the textures are noticeably darker compared to GIMP and the software renderer. When I pass GL_RGBA8, the display matches GIMP and the software renderer.
So what's happening here? OpenGL is modifying the display profile for its window / context only and thus the difference? Or perhaps I am misunderstanding something more fundamental or have something initialised incorrectly?
Thanks