# MacOS color correction

**URL:** <https://discourse.glfw.org/t/macos-color-correction/2908>\
**Category:** support\
**Created:** [April 6, 2025, 5:01pm UTC](https://discourse.glfw.org/t/macos-color-correction/2908 "2025-04-06T17:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orgnldave444](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/orgnldave444/32/1022_2.png) [@orgnldave444](https://discourse.glfw.org/u/orgnldave444)\
**Post date:** [April 6, 2025, 5:01pm UTC](https://discourse.glfw.org/t/macos-color-correction/2908/1 "2025-04-06T17:01:19Z")

</div>

Hi there.  
I’m using DearIMGUI + WebGPU + GLFW on MacOS, but ideally I’d like my software to be cross-platform.

I’m doing some software rendering, and MacOS is badly color correcting it.

How do I tell GLFW to tell MacOS to stop color correcting so badly?

Thanks,

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 6, 2025, 6:02pm UTC](https://discourse.glfw.org/t/macos-color-correction/2908/2 "2025-04-06T18:02:52Z")

</div>

If you’re using WebGPU then GLFW has no interaction with the framebuffer format and colour correction. If you’re using OpenGL then you can [control whether an sRGB capable framebuffer is created](https://www.glfw.org/docs/3.3/window_guide.html#window_hints_fb).

When software rendering you likely need to gamma correct your linear colour, for more information see: [Chapter 24. The Importance of Being Linear | NVIDIA Developer](https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-24-importance-being-linear) and [The sRGB Learning Curve | by Tom Forsyth | Medium](https://medium.com/@tomforsyth/the-srgb-learning-curve-773b7f68cf7a) in particular you need to apply a transform similar to:

```auto
vec3 colOut = pow( linearCol, 1.0 / 2.2 );

```

---

<div class="post-metadata">

**Author:** ![orgnldave444](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/orgnldave444/32/1022_2.png) [@orgnldave444](https://discourse.glfw.org/u/orgnldave444)\
**Post date:** [April 6, 2025, 8:06pm UTC](https://discourse.glfw.org/t/macos-color-correction/2908/3 "2025-04-06T20:06:38Z")

</div>

Thanks! Just determining for sure where the “contact point” with color correction is a challenge.

FYI, it’s not a gamma issue, but a color issue. Literally, colors with no blue end up with “on-screen” blue values of \>40. Sigh.
