PDA

View Full Version : srgb Renderbuffer?



Hollis
10-10-2011, 04:24 PM
I'm trying to create an srgb renderbuffer

glRenderbufferStorage(GL_RENDERBUFFER, GL_SRGB8_ALPHA8, Width, Height);

but it gives a GL_INVALID_ENUM error.

A regular srgb texture works fine and can be rendered to correctly but the real problem is that it needs to be multisampled, but I can't create an srgb multisampled texture or renderbuffer either.

I thought renderbuffers were supposed to support srgb formats? Am I missing something?

skynet
10-10-2011, 10:02 PM
Let me guess, ATI card? Their drivers have a bug that won't allow you to create SRGB renderbuffers.
They know about it for months now, but didn't care to fix.

Hollis
10-11-2011, 07:55 AM
Yeah I guess that will be it.

Thanks for letting me know.