mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
VULKAN_UpdateVertexBuffer() should return true if there's nothing to do
This commit is contained in:
@@ -3159,7 +3159,7 @@ static bool VULKAN_UpdateVertexBuffer(SDL_Renderer *renderer,
|
|||||||
VULKAN_Buffer *vertexBuffer;
|
VULKAN_Buffer *vertexBuffer;
|
||||||
|
|
||||||
if (dataSizeInBytes == 0) {
|
if (dataSizeInBytes == 0) {
|
||||||
return 0; // nothing to do.
|
return true; // nothing to do.
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rendererData->issueBatch) {
|
if (rendererData->issueBatch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user