From 8257e199fd04d8b8afae5f4942cefdac0f8e053f Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 14 Mar 2016 00:07:18 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/sdlayer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index f726857a8..d670f30f8 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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);