ray:: GLES textures are not precise enough for via_texture ):

This commit is contained in:
Zeno Rogue 2021-06-01 18:03:18 +02:00
parent cf7d19c775
commit ba58789d56
1 changed files with 8 additions and 0 deletions

View File

@ -164,8 +164,16 @@ struct raycaster : glhr::GLprogram {
};
#endif
#ifdef GLES_ONLY
bool m_via_texture = false;
bool wall_via_texture = false;
static const bool can_via_texture = false; /* textures are not precise enough ): */
#else
bool m_via_texture = true;
bool wall_via_texture = true;
static const bool can_via_texture = true;
#endif
raycaster::raycaster(string vsh, string fsh) : GLprogram(vsh, fsh) {
println(hlog, "assigning");