Skip to content

renderer: implement native sRGB support #1687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

illwieckz
Copy link
Member

@illwieckz illwieckz commented Jun 25, 2025

Implement native sRGB support.

Obsoletes #1543:

It includes the commit from #1686:

This is based on an even older branch from 2019 as I initially tested native sRGB support before attempting to implement it in GLSL.

I rebased on current master and merged improvements from the srgb-naive branch as it implemented more corner cases than this one.

It still suffers from the problems I faced in 2019: 2D colors are wrong. I need help on that part.

@illwieckz illwieckz added A-Renderer T-Feature-Request Proposed new feature labels Jun 25, 2025
@illwieckz illwieckz force-pushed the illwieckz/srgb-native branch 2 times, most recently from c914db4 to ce0a6e3 Compare June 25, 2025 07:46
@illwieckz
Copy link
Member Author

Hmmm… I don't know where to write the line glEnable( GL_FRAMEBUFFER_SRGB );, should it be called at the beginning of every frame?.

@VReaperV
Copy link
Contributor

Hmmm… I don't know where to write the line glEnable( GL_FRAMEBUFFER_SRGB );, should it be called at the beginning of every frame?.

You only really need to call it once, it's global state and will affect all sRGB framebuffers.

@illwieckz
Copy link
Member Author

Which framebuffer should be sRGB there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants