Using rather sane values for gluPerspective - fixing Z-Fighting bugs on Intel chips; in Fullscreen toggle, always apply new viewing values independent of Screen_mode

This commit is contained in:
zicodxx 2010-07-29 20:19:52 +00:00
parent db15309f5f
commit 808dbae5ed
3 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@ D2X-Rebirth Changelog
20100729
--------
main/automap.c, main/cntrlcen.c, main/game.c, main/gamecntl.c, main/gameseq.c, main/menu.c, main/movie.c, main/newmenu.c: Tidy up use of set_screen_mode
arch/ogl/gr.c, arch/ogl/ogl.c: Using rather sane values for gluPerspective - fixing Z-Fighting bugs on Intel chips; in Fullscreen toggle, always apply new viewing values independent of Screen_mode
20100728
--------

View file

@ -115,7 +115,7 @@ int gr_toggle_fullscreen(void)
gr_remap_color_fonts();
gr_remap_mono_fonts();
if (gl_initialized && Screen_mode != SCREEN_GAME) // update viewing values for menus
if (gl_initialized) // update viewing values for menus
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();

View file

@ -993,7 +993,7 @@ void ogl_start_frame(void){
glShadeModel(GL_SMOOTH);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();//clear matrix
gluPerspective(90.0,1.0,0.01,1000000.0);
gluPerspective(90.0,1.0,1.0,1000.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();//clear matrix
}