true 16-bit color... glorious
This commit is contained in:
parent
3dccce8a81
commit
b010f3e471
30 changed files with 679 additions and 652 deletions
|
|
@ -468,8 +468,9 @@ void pxl8_bsp_render_textured(
|
|||
static u32 rendered_faces_capacity = 0;
|
||||
|
||||
if (rendered_faces_capacity < bsp->num_faces) {
|
||||
rendered_faces = realloc(rendered_faces, bsp->num_faces);
|
||||
if (!rendered_faces) return;
|
||||
u8* new_buffer = realloc(rendered_faces, bsp->num_faces);
|
||||
if (!new_buffer) return;
|
||||
rendered_faces = new_buffer;
|
||||
rendered_faces_capacity = bsp->num_faces;
|
||||
pxl8_debug("Allocated face tracking buffer: %u bytes", bsp->num_faces);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue