mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 02:17:39 +00:00
Fixed warning running a command queue without any vertex operations
This commit is contained in:
parent
375bde8a4f
commit
f8b41919da
2 changed files with 2 additions and 1 deletions
|
@ -1099,7 +1099,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue