Browse Source

VULKAN_UpdateVertexBuffer() should return true if there's nothing to do

Sam Lantinga 8 months ago
parent
commit
3e60fb4223
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/vulkan/SDL_render_vulkan.c

+ 1 - 1
src/render/vulkan/SDL_render_vulkan.c

@@ -3159,7 +3159,7 @@ static bool VULKAN_UpdateVertexBuffer(SDL_Renderer *renderer,
     VULKAN_Buffer *vertexBuffer;
 
     if (dataSizeInBytes == 0) {
-        return 0; // nothing to do.
+        return true; // nothing to do.
     }
 
     if (rendererData->issueBatch) {