fixed texture rendering in pxl8_bsp.c
This commit is contained in:
parent
2e2461c35a
commit
7dd32ec453
3 changed files with 4 additions and 14 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue