1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

fixed sl2 rendering

This commit is contained in:
Zeno Rogue 2022-05-28 18:44:42 +02:00
parent a4d8e8314b
commit b6b32d2c2b

View File

@ -700,8 +700,13 @@ void dqi_poly::gldraw() {
current_display->set_all(ed, sl2 ? 0 : V.shift);
glhr::set_index_sl(V.shift + M_PI * min_slr * hybrid::csteps / cgi.psl_steps);
}
else if(sl2) {
current_display->set_all(ed, 0);
glhr::set_index_sl(V.shift);
}
else {
current_display->set_all(ed, V.shift);
current_display->set_all(ed, sl2 ? 0 : V.shift);
glhr::set_index_sl(V.shift + M_PI * min_slr * hybrid::csteps / cgi.psl_steps);
}
bool draw = color;