From ba58789d5690cc39934676c1a92af850c37e4b83 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Jun 2021 18:03:18 +0200 Subject: [PATCH] ray:: GLES textures are not precise enough for via_texture ): --- raycaster.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/raycaster.cpp b/raycaster.cpp index d5f1b43d..a9358441 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -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");