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

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

View file

@ -593,6 +593,7 @@ SW_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Texture *te
}
cmd->data.draw.count = count;
size_indices = indices ? size_indices : 0;
if (texture) {
GeometryCopyData *ptr = (GeometryCopyData *) verts;