# OpenGL Brightness and SDL

**URL:** <https://discourse.libsdl.org/t/opengl-brightness-and-sdl/13203>\
**Category:** SDL Development\
**Created:** [April 2, 2006, 5:00pm UTC](https://discourse.libsdl.org/t/opengl-brightness-and-sdl/13203 "2006-04-02T17:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephenJSweeney](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/43a26b/32.png) [@StephenJSweeney](https://discourse.libsdl.org/u/StephenJSweeney)\
**Post date:** [April 2, 2006, 5:00pm UTC](https://discourse.libsdl.org/t/opengl-brightness-and-sdl/13203/1 "2006-04-02T17:00:05Z")

</div>

Hi,

This there a good way I can tweak the gamma level of OpenGL or should I do it  
just using the SDL gamma functions…?

Steve 🙂

---

<div class="post-metadata">

**Author:** ![Simon3](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@Simon3](https://discourse.libsdl.org/u/Simon3)\
**Post date:** [April 2, 2006, 7:53pm UTC](https://discourse.libsdl.org/t/opengl-brightness-and-sdl/13203/2 "2006-04-02T19:53:08Z")

</div>

> This there a good way I can tweak the gamma level of OpenGL or should I do it  
> just using the SDL gamma functions…?

Good question, I’m also interested if somebody have an answer. One of  
my old programs has been recompiled and since then all colors look  
dull… =(

---

<div class="post-metadata">

**Author:** ![icculus](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/icculus/32/81_2.png) [@icculus](https://discourse.libsdl.org/u/icculus)\
**Post date:** [April 3, 2006, 1:47am UTC](https://discourse.libsdl.org/t/opengl-brightness-and-sdl/13203/3 "2006-04-03T01:47:52Z")

</div>

> > This there a good way I can tweak the gamma level of OpenGL or should I do it  
> > just using the SDL gamma functions…?

The SDL gamma functions should work with OpenGL contexts.

–ryan.
