Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

ngpu/glcontext: enable sRGB framebuffer conversions - #315

Merged
mbouron merged 5 commits into
NopeForge:mainfrom
mbouron:srgb
Nov 10, 2025
Merged

mbouron merged 5 commits into
NopeForge:mainfrom
mbouron:srgb

Conversation

@mbouron

@mbouron mbouron commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@mbouron
mbouron force-pushed the srgb branch 2 times, most recently from 52e1d14 to c19cc96 Compare July 15, 2025 13:34
@mbouron mbouron changed the title ngpu/glcontext: enable sRGB framebuffer conversions WIP ngpu/glcontext: enable sRGB framebuffer conversions Jul 15, 2025
@mbouron
mbouron force-pushed the srgb branch 6 times, most recently from 4c86006 to 9c83a82 Compare July 21, 2025 11:56
@mbouron mbouron changed the title WIP ngpu/glcontext: enable sRGB framebuffer conversions ngpu/glcontext: enable sRGB framebuffer conversions Jul 23, 2025
@mbouron
mbouron requested a review from ubitux November 10, 2025 08:02

@ubitux ubitux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably OK, tho with srgb=False the test fails with only 2% error. This is probably because the fingerprint works on local differentiation; a color picker would probably be more reliable if you're comparing sRGB vs linear colors.

Adds more sRGB formats for internal use.
sRGB framebuffer conversions are automatically enabled on OpenGLES.
Swapchain framebuffer colorspace is left to the default (linear) and is not
configurable yet.
Swapchain framebuffer colorspace is left to the default (linear) and is not
configurable yet.
@mbouron
mbouron force-pushed the srgb branch 3 times, most recently from 1944b6f to 799c049 Compare November 10, 2025 19:54
@mbouron

mbouron commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

Probably OK, tho with srgb=False the test fails with only 2% error. This is probably because the fingerprint works on local differentiation; a color picker would probably be more reliable if you're comparing sRGB vs linear colors.

I agree. I did that because of laziness. I changed the test.

Ensures linear->sRGB conversions are performed when using sRGB color
formats. This test targets the OpenGL backend which needs to explicitly
enable GL_FRAMEBUFFER_SRGB to behave like Vulkan and OpenGLES.
@mbouron
mbouron merged commit e796656 into NopeForge:main Nov 10, 2025
14 of 15 checks passed
@mbouron
mbouron deleted the srgb branch November 10, 2025 20:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants