Skip to content

Commit

Permalink
Fixed warning running a command queue without any vertex operations
Browse files Browse the repository at this point in the history
(cherry picked from commit f8b4191)
  • Loading branch information
slouken committed Feb 6, 2023
1 parent af5efad commit 3fa5a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -1108,7 +1108,7 @@ static int D3D_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd, v
return -1;
}

if (vertices) {
if (vertsize > 0) {
/* upload the new VBO data for this set of commands. */
vbo = data->vertexBuffers[vboidx];
if (data->vertexBufferSize[vboidx] < vertsize) {
Expand Down

0 comments on commit 3fa5a2f

Please sign in to comment.