Can SDL create a sRGB OpenGL context? -


the documentation of sdl not seem mention color spaces. don't see srgb flag/parameter sdl_setvideomode or sdl_gl_setattribute. possible @ sdl ask opengl perform color correction when writing on framebuffer 0? glut seems able provide functionality.

if sdl cannot it, usual workaround? considering rendering srgb texture gl_framebuffer_srgb enabled, , rendering framebuffer 0 framebuffer_srgb disabled. better idea?

the "usual workaround" "don't use sdl." if tool doesn't support it, tool doesn't support it, , that's that.

your suggested workaround render internal srgb image is... not useful think.

will work? yes, in sense images who's colors gamma correct (though not because of enabling or disabling gl_framebuffer_srgb). however, degrading of image quality, because non-linear 24-bit srgb colorspace not convert linear 24-bit linearrgb colorspace. you'll lose color definition.

the point of being able present srgb image directly avoid conversion , resulting loss of color definition.

whether can live artifacts you. i'd avoid using sdl, or hacking sdl let need to.


Comments

Popular posts from this blog

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -