mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
Disable gamma based brightness with GL ES because it's too slow. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5659 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2a55c890e0
commit
8257e199fd
1 changed files with 2 additions and 0 deletions
|
@ -1416,6 +1416,7 @@ void setvideomode_sdlcommonpost(int32_t x, int32_t y, int32_t c, int32_t fs, int
|
|||
OSD_ResizeDisplay(xres, yres);
|
||||
|
||||
// save the current system gamma to determine if gamma is available
|
||||
#ifndef EDUKE32_GLES
|
||||
if (!gammabrightness)
|
||||
{
|
||||
// float f = 1.0 + ((float)curbrightness / 10.0);
|
||||
|
@ -1430,6 +1431,7 @@ void setvideomode_sdlcommonpost(int32_t x, int32_t y, int32_t c, int32_t fs, int
|
|||
if (gammabrightness && setgamma() < 0)
|
||||
gammabrightness = 0; // nope
|
||||
}
|
||||
#endif
|
||||
|
||||
setpalettefade(palfadergb.r, palfadergb.g, palfadergb.b, palfadedelta);
|
||||
|
||||
|
|
Loading…
Reference in a new issue