Gamma error in OpenGL

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
Tosen
Posts: 1
Joined: Mon Aug 06, 2012 21:57

Gamma error in OpenGL

Post by Tosen »

When one is playing GZdoom and they alt-tab out or alt+enter to make it windowed, the gamma from the game copies over to windows, and causes the whole thing to look like the ingame gamma.

My graphics card is a Nvidia GeForce GTX 560 Ti
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Gamma error in OpenGL

Post by Enjay »

I'd be very surprised if this isn't down to an OpenGL limitation. The reasons were explained to me once but I forget the details.

On my old computer, it used to happen with virtually every OpenGL application that I used. I forget what it was called now but, for this exact reason, I used to have a shortcut to a little application on my desktop that when I ran it, it returned my desktop to the default gamma settings. I'll see if I can find what it was called.

[edit]

Aha! I actually found the thread where I was first told about the application in question. It was called setgamma. Unfortunately, the link to the application is dead.

http://forum.drdteam.org/viewtopic.php? ... 88&p=20247

However, I *think* this is it.

http://www.cwdohnal.com/setgamma/

Unzip it and create a shortcut to setgamma.exe (wherever you unzipped it to) and then edit the shorcut to have " -reset" after setgamma.exe (without the quotes).

Code: Select all

path\setgamma.exe -reset
Double clicking the shortcut should return your desktop to the correct gamma.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Gamma error in OpenGL

Post by Gez »

I found this, but it doesn't seem like this extension has ever gone mainstream. Too bad for WGL_GAMMA_EXCLUDE_DESKTOP_I3D.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Gamma error in OpenGL

Post by Graf Zahl »

That's due to the shitty system interface OpenGL uses. One could change the gamma each time the window is changed but that causes more problems than it solves on some hardware.

I find it plain idiotic that GL can't use a genuine fullscreen mode like D3D does. You essentially stay on the desktop just with different settings and work in a fullscreen window.
Locked

Return to “Closed Bugs”