From a189b137776beed50a8c7695282b54fe77011ee2 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 25 Feb 2005 06:31:53 +0000 Subject: [PATCH] restore gamma ramp on exit since some drivers don't do it automatically (eg, ati's fglrx linux driver) (d1x r1.41) --- ChangeLog | 6 ++++++ arch/ogl/gr.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 980ae783e..ef31863a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-24 Matthew Mueller + + * arch/ogl/gr.c: restore gamma ramp on exit since some drivers + don't do it automatically (eg, ati's fglrx linux driver) (d1x + r1.41) + 2005-02-24 Bradley Bell * main/movie.c: change movie Warnings to con_printf, simplify diff --git a/arch/ogl/gr.c b/arch/ogl/gr.c index e585c8407..692c5db1e 100644 --- a/arch/ogl/gr.c +++ b/arch/ogl/gr.c @@ -1,4 +1,4 @@ -/* $Id: gr.c,v 1.43 2005-02-25 05:20:36 chris Exp $ */ +/* $Id: gr.c,v 1.44 2005-02-25 06:31:53 btb Exp $ */ /* * * OGL video functions. - Added 9/15/99 Matthew Mueller @@ -531,6 +531,8 @@ int gr_init() void gr_close() { // mprintf((0,"ogl init: %s %s %s - %s\n",glGetString(GL_VENDOR),glGetString(GL_RENDERER),glGetString(GL_VERSION),glGetString,(GL_EXTENSIONS))); + ogl_brightness_r = ogl_brightness_g = ogl_brightness_b = 0; + ogl_setbrightness_internal(); ogl_close();//platform specific code if (grd_curscreen){