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);