once again better restricion for glClear while screen change

This commit is contained in:
zicodxx 2006-10-13 09:58:18 +00:00
parent c3a9351d1d
commit 92cc2a38a8

View file

@ -109,7 +109,7 @@ void ogl_set_screen_mode(void){
}else{
glClearColor(0.0, 0.0, 0.0, 0.0);
glDrawBuffer(GL_FRONT);
if (Screen_mode == -1 && Function_mode == FMODE_GAME)
if (Screen_mode == -1 || Function_mode == FMODE_MENU)
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();//clear matrix