added make_floor_textures in raycaster

This commit is contained in:
Zeno Rogue 2022-08-05 19:22:01 +02:00
parent 7787f26bc2
commit dee519badd
1 changed files with 6 additions and 0 deletions

View File

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