Skip to content

Commit

Permalink
Revert "Engine: restore gamma when releasing display mode"
Browse files Browse the repository at this point in the history
This reverts commit 188c042.

This is not a correct fix. The Gamma seems to be controlled well by SDL itself, but there are certain cases when it is not affected properly? This should be investigated further before any changes.
  • Loading branch information
ivan-mogilko committed Feb 20, 2024
1 parent 59a28ae commit 202fb23
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Engine/gfx/ali3dsw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,6 @@ void SDLRendererGraphicsDriver::ReleaseDisplayMode()
OnModeReleased();
ClearDrawLists();

SDL_Window *window = sys_get_window();
if (window && _hasGamma)
{
SDL_SetWindowGammaRamp(window, _defaultGammaRed, _defaultGammaGreen, _defaultGammaBlue);
}

sys_window_set_style(kWnd_Windowed);
}

Expand Down

0 comments on commit 202fb23

Please sign in to comment.