mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-25 22:26:08 +00:00
Fixed warning running a command queue without any vertex operations
(cherry picked from commit f8b41919da)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user