fixed a possible bug while raycasting the first frame

This commit is contained in:
Zeno Rogue 2021-08-06 15:03:06 +02:00
parent cba7ed1db9
commit dfa682ea8a
1 changed files with 8 additions and 0 deletions

View File

@ -2026,6 +2026,14 @@ EX void cast() {
}
rmap->assign_uniforms(&*o);
}
// we may learn about this now...
if(need_many_cell_types() && o->uWallOffset == -1) {
reset_raycaster();
cast();
return;
}
GLERR("uniform mediump start");
if(!o) { cast(); return; }