Skip to content

Commit

Permalink
Enable crashing the app on too many verticies
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 17, 2023
1 parent 52c7c6f commit f75ebd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple_renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void simple_renderer_reload_shaders(Simple_Renderer *sr)
// simple_renderer_vertex() for a potentially large amount of verticies in the first place.
void simple_renderer_vertex(Simple_Renderer *sr, Vec2f p, Vec4f c, Vec2f uv)
{
#if 1
#if 0
// TODO: flush the renderer on vertex buffer overflow instead firing the assert
if (sr->verticies_count >= SIMPLE_VERTICIES_CAP) simple_renderer_flush(sr);
#else
Expand Down

0 comments on commit f75ebd3

Please sign in to comment.