From 7127936bec847c7625b6fc1a5d6057b742c3608a Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Sun, 28 Oct 2001 22:10:51 +0000 Subject: [PATCH] don't change gamma ramps when running dedicated git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@961 d7cf8633-e32d-0410-b094-e92efae38249 --- palette.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/palette.c b/palette.c index 5eb176f1..4456930e 100644 --- a/palette.c +++ b/palette.c @@ -146,6 +146,11 @@ qboolean hardwaregammasupported = false; void VID_UpdateGamma(qboolean force) { static float cachegamma = -1, cachebrightness = -1, cachecontrast = -1, cachelighthalf = -1; + + // LordHavoc: don't mess with gamma tables if running dedicated + if (isDedicated) + return; + if (!force && vid_gamma.value == cachegamma && vid_brightness.value == cachebrightness && vid_contrast.value == cachecontrast && lighthalf == cachelighthalf) return; -- 2.39.2