restore gamma ramp on exit since some drivers don't do it automatically (eg, ati's fglrx linux driver) (d1x r1.41)

This commit is contained in:
Bradley Bell 2005-02-25 06:31:53 +00:00
parent 8de16c97e9
commit a189b13777
2 changed files with 9 additions and 1 deletions

View file

@ -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

View 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){