once again better restricion for glClear while screen change
This commit is contained in:
parent
c3a9351d1d
commit
92cc2a38a8
|
@ -109,7 +109,7 @@ void ogl_set_screen_mode(void){
|
||||||
}else{
|
}else{
|
||||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||||
glDrawBuffer(GL_FRONT);
|
glDrawBuffer(GL_FRONT);
|
||||||
if (Screen_mode == -1 && Function_mode == FMODE_GAME)
|
if (Screen_mode == -1 || Function_mode == FMODE_MENU)
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();//clear matrix
|
glLoadIdentity();//clear matrix
|
||||||
|
|
Loading…
Reference in a new issue