mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-01 11:49:17 +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;
|
vid.depth = ms;
|
||||||
if(pmodel == mdDisk) pmodel = mdPerspective;
|
if(pmodel == mdDisk) pmodel = mdPerspective;
|
||||||
swapmatrix(View);
|
swapmatrix(View);
|
||||||
|
swapmatrix(current_display->which_copy);
|
||||||
callhooks(hooks_swapdim);
|
callhooks(hooks_swapdim);
|
||||||
for(auto m: allmaps) m->on_dim_change();
|
for(auto m: allmaps) m->on_dim_change();
|
||||||
if(cgflags & qIDEAL && vid.texture_step < 32)
|
if(cgflags & qIDEAL && vid.texture_step < 32)
|
||||||
@ -1008,6 +1009,7 @@ EX void switch_always3() {
|
|||||||
vid.depth = 1;
|
vid.depth = 1;
|
||||||
if(pmodel == mdPerspective) pmodel = mdDisk;
|
if(pmodel == mdPerspective) pmodel = mdDisk;
|
||||||
swapmatrix(View);
|
swapmatrix(View);
|
||||||
|
swapmatrix(current_display->which_copy);
|
||||||
callhooks(hooks_swapdim);
|
callhooks(hooks_swapdim);
|
||||||
for(auto m: allmaps) m->on_dim_change();
|
for(auto m: allmaps) m->on_dim_change();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user