1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

switch_to_text, needed for iOS

This commit is contained in:
Zeno Rogue 2019-07-03 05:02:00 +02:00
parent d5109fc3bb
commit 77bd96e6b5

View File

@ -826,5 +826,12 @@ void set_depthwrite(bool b) {
}
}
void switch_to_text(const vector<glvertex>& v, const vector<glvertex>& t) {
glhr::be_textured();
dynamicval<eModel> pm(pmodel, mdUnchanged);
if(!svg::in) current_display->set_all(0);
vertices_texture(v, t, 0, 0);
}
}
}