mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 11:54:48 +00:00
fixed a possible black screen on firstperson mode change
This commit is contained in:
parent
a1b0b6a643
commit
e513cc84df
@ -991,6 +991,7 @@ EX void switch_always3() {
|
||||
vid.depth = ms;
|
||||
if(pmodel == mdDisk) pmodel = mdPerspective;
|
||||
swapmatrix(View);
|
||||
swapmatrix(current_display->which_copy);
|
||||
callhooks(hooks_swapdim);
|
||||
for(auto m: allmaps) m->on_dim_change();
|
||||
if(cgflags & qIDEAL && vid.texture_step < 32)
|
||||
@ -1008,6 +1009,7 @@ EX void switch_always3() {
|
||||
vid.depth = 1;
|
||||
if(pmodel == mdPerspective) pmodel = mdDisk;
|
||||
swapmatrix(View);
|
||||
swapmatrix(current_display->which_copy);
|
||||
callhooks(hooks_swapdim);
|
||||
for(auto m: allmaps) m->on_dim_change();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user