fixed texture rendering in pxl8_bsp.c

This commit is contained in:
asrael 2025-11-11 22:42:10 -06:00
parent 2e2461c35a
commit 7dd32ec453
3 changed files with 4 additions and 14 deletions

View file

@ -387,7 +387,7 @@ void pxl8_bsp_render_face(pxl8_gfx* gfx, const pxl8_bsp* bsp, u32 face_id, u32 t
u32 num_verts = 0;
u32 color = 15;
bool use_texture = (texture_id > 0);
bool use_texture = (face->texinfo_id < bsp->num_texinfo);
for (u32 i = 0; i < face->num_edges && num_verts < 64; i++) {