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:
parent
3dd7a7a627
commit
6af139181b
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
|||
20100729
|
||||
--------
|
||||
main/automap.c, main/fuelcen.c, main/game.c, main/gamecntl.c, main/gameseq.c, main/menu.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
|
||||
--------
|
||||
|
|
|
@ -113,7 +113,7 @@ int gr_toggle_fullscreen(void)
|
|||
{
|
||||
gr_do_fullscreen(!ogl_fullscreen);
|
||||
|
||||
if (gl_initialized && Screen_mode != SCREEN_GAME) // update viewing values for menus
|
||||
if (gl_initialized) // update viewing values for menus
|
||||
{
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue