ro0mquy / rtificial

Flashing Visuals and Dope Sound | Das Git™
http://rtificial.org/
1 stars 0 forks source link

Avoid state change for sRGB encoding #150

Open vincent23 opened 8 years ago

vincent23 commented 8 years ago

We currently call glEnable(GL_FRAMEBUFFER_SRGB) and glDisable(GL_FRAMEBUFFER_SRGB) for drawing the final image to the screen for every frame. This can probably be avoided, because writes to non-sRGB textures are still considered to be linear (http://stackoverflow.com/a/11386809).