Skip to content

Commit

Permalink
Remove redundant static_assert()
Browse files Browse the repository at this point in the history
MAX_DEBUG_LINES is now derived from q_countof(tess.vertices), anyway.
  • Loading branch information
res2k committed Jan 5, 2025
1 parent 2b9b921 commit 0a3d18b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/refresh/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,6 @@ static void GL_DrawDebugLines(void)
if (gl_config.caps & QGL_CAP_LINE_SMOOTH)
qglEnable(GL_LINE_SMOOTH);

static_assert(q_countof(debug_lines) <= MAX_DEBUG_VERTICES, "Too many debug lines");

dst_vert = tess.vertices;
numverts = 0;
LIST_FOR_EACH_SAFE(debug_line_t, l, next, &debug_lines_active, entry) {
Expand Down

0 comments on commit 0a3d18b

Please sign in to comment.