On a NVidia Card the following works fine, while on an ATI card i get an GL_INVALID_ENUM because of the GL_SRGB8_ALPHA8.
Code :glBindTexture(GL_TEXTURE_2D_MULTISAMPLE,texMS); glTexImage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, 2 ,GL_SRGB8_ALPHA8, windowWidth, windowHeight,true);
(I have an 4.2-Comptibility Context and i am using freeglut and glew)
In the 4.2 Documentation it is said, that glTexImage2DMultisample only accepts color-renderable formats and GL_SRGB is not listed as color-renderable.
So is it true, that i can't have a multisampled sRGB texture?
Why is it said in the GL_EXT_FRAMEBUFFER_sRGB documentation, that
If not so:... if the color samples for multisampling are sRGB encoded ...
Did i misread the specification?