Skip to content

Commit

Permalink
SW_RenderGeometry: add a redundant check to clear static analysis (s…
Browse files Browse the repository at this point in the history
…ee bug libsdl-org#4600)
  • Loading branch information
1bsyl committed Aug 27, 2021
1 parent 54ca1d1 commit be6bee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/SDL_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -3452,6 +3452,7 @@ SDL_SW_RenderGeometryRaw(SDL_Renderer *renderer,
}

prev[0] = -1; prev[1] = -1; prev[2] = -1;
size_indices = indices ? size_indices : 0;

for (i = 0; i < count; i += 3) {
int k0, k1, k2; /* Current triangle indices */
Expand Down

0 comments on commit be6bee0

Please sign in to comment.