SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600)

This commit is contained in:
Sylvain 2021-08-27 07:47:28 +02:00
parent 54ca1d190e
commit be6bee0b5a
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 0 deletions

View File

@ -3452,6 +3452,7 @@ SDL_SW_RenderGeometryRaw(SDL_Renderer *renderer,
} }
prev[0] = -1; prev[1] = -1; prev[2] = -1; prev[0] = -1; prev[1] = -1; prev[2] = -1;
size_indices = indices ? size_indices : 0;
for (i = 0; i < count; i += 3) { for (i = 0; i < count; i += 3) {
int k0, k1, k2; /* Current triangle indices */ int k0, k1, k2; /* Current triangle indices */