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:
terminx 2016-03-14 00:07:18 +00:00
parent 2a55c890e0
commit 8257e199fd

View file

@ -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);