restore gamma ramp on exit since some drivers don't do it automatically (eg, ati...
authorBradley Bell <btb@icculus.org>
Fri, 25 Feb 2005 06:31:53 +0000 (06:31 +0000)
committerBradley Bell <btb@icculus.org>
Fri, 25 Feb 2005 06:31:53 +0000 (06:31 +0000)
ChangeLog
arch/ogl/gr.c

index 980ae78..ef31863 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-24  Matthew Mueller  <donut@dakotacom.net>
+
+       * 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  <btb@icculus.org>
 
        * main/movie.c: change movie Warnings to con_printf, simplify
index e585c84..692c5db 100644 (file)
@@ -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){