1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

fixed a possible black screen on firstperson mode change

This commit is contained in:
Zeno Rogue 2021-04-15 17:54:49 +02:00
parent a1b0b6a643
commit e513cc84df

View File

@ -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();
}