mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 16:23:08 +00:00
major cleanup of projection setting
This commit is contained in:
1 parent
acf7883393
commit
3c9e4db46e
15 files changed
+67
-84
No files matched your search
@@ -363,6 +363,7 @@ void be_textured(shader_projection sp) { switch_mode(gmTextured, sp); }
|
||||
|
||||
void switch_mode(eMode m, shader_projection sp) {
|
||||
if(m == mode && current_shader_projection == sp) return;
|
||||
reset_projection();
|
||||
GLERR("pre_switch_mode");
|
||||
#if CAP_SHADER
|
||||
programs[m][int(sp)]->enable();
|
||||
|
||||
Reference in new issue
Block a user