1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 19:18:05 +00:00

fixes to projection streamlining

This commit is contained in:
Zeno Rogue
2019-04-29 03:37:27 +02:00
parent be2ac7654a
commit c19ffb3597
6 changed files with 8 additions and 7 deletions

View File

@@ -360,6 +360,7 @@ void colorClear(color_t color) {
void be_nontextured(shader_projection sp) { switch_mode(gmColored, sp); }
void be_textured(shader_projection sp) { switch_mode(gmTextured, sp); }
void use_projection(shader_projection sp) { switch_mode(mode, sp); }
void switch_mode(eMode m, shader_projection sp) {
if(m == mode && current_shader_projection == sp) return;