From dee519badd2755ed202ac45b567bb18fd69f35e1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 5 Aug 2022 19:22:01 +0200 Subject: [PATCH] added make_floor_textures in raycaster --- raycaster.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/raycaster.cpp b/raycaster.cpp index 5a87742a..8c8f4f4e 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -2714,6 +2714,12 @@ EX void cast() { } glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + if(!floor_textures) { + println(hlog, "make_floor_textures called"); + make_floor_textures(); + check_cgi(); + } + glActiveTexture(GL_TEXTURE0 + 0); glBindTexture(GL_TEXTURE_2D, floor_textures->renderedTexture);