diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4074b023d..36c471e57 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 -------- diff --git a/arch/ogl/gr.c b/arch/ogl/gr.c index f8eb2d704..ed8b67dcc 100644 --- a/arch/ogl/gr.c +++ b/arch/ogl/gr.c @@ -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(); diff --git a/arch/ogl/ogl.c b/arch/ogl/ogl.c index c99fdac5c..9c0941119 100644 --- a/arch/ogl/ogl.c +++ b/arch/ogl/ogl.c @@ -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 }