From cd11a5dc271bd0193934da68ef32dbc09d2c490f Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 14 Jan 2005 13:12:44 +0000 Subject: [PATCH] Fix a mistake. --- simgear/screen/texture.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/screen/texture.cxx b/simgear/screen/texture.cxx index adf98ec8..91550edb 100644 --- a/simgear/screen/texture.cxx +++ b/simgear/screen/texture.cxx @@ -832,7 +832,7 @@ SGTexture::make_normalmap(float brightness) { map[mpos+0] = (128+(texture_data[posxp1]-texture_data[dpos])/2); map[mpos+1] = (128+(texture_data[posyp1]-texture_data[dpos])/2); - map[mpos+2] = 128 + GLubyte(128*brightness); + map[mpos+2] = 127 + GLubyte(128*brightness); } free (texture_data); -- 2.39.5