Skip to content

Commit

Permalink
Raise buf_vbo limits to avoid flushing early.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyonFlame committed Oct 15, 2020
1 parent a8b1046 commit b9561e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pc/gfx/gfx_pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ typedef union {
#define RATIO_X (gfx_current_dimensions.width / (2.0f * HALF_SCREEN_WIDTH))
#define RATIO_Y (gfx_current_dimensions.height / (2.0f * HALF_SCREEN_HEIGHT))

#define MAX_BUFFERED 256
#define MAX_BUFFERED 2048
#define MAX_LIGHTS 2
#define MAX_VERTICES 64

Expand Down Expand Up @@ -1052,6 +1052,7 @@ static void gfx_sp_tri1(uint8_t vtx1_idx, uint8_t vtx2_idx, uint8_t vtx3_idx) {
buf_vbo[buf_vbo_len++] = color->a / 255.0f;*/
}
if (++buf_vbo_num_tris == MAX_BUFFERED) {
printf("Vertex buffer overflow!\n");
gfx_flush();
}
}
Expand Down

0 comments on commit b9561e5

Please sign in to comment.