Sam Lantinga 2 дней назад
Родитель
Сommit
2069d5f6bc
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/render/vulkan/SDL_render_vulkan.c

+ 2 - 3
src/render/vulkan/SDL_render_vulkan.c

@@ -3847,11 +3847,10 @@ static bool VULKAN_SetDrawState(SDL_Renderer *renderer, const SDL_RenderCommand
             // First time, grab offset 0
             // First time, grab offset 0
             rendererData->currentConstantBufferOffset = 0;
             rendererData->currentConstantBufferOffset = 0;
             constantBufferOffset = 0;
             constantBufferOffset = 0;
-        }
-        else {
+        } else {
             // Align the next address to the minUniformBufferOffsetAlignment
             // Align the next address to the minUniformBufferOffsetAlignment
             VkDeviceSize alignment = rendererData->physicalDeviceProperties.limits.minUniformBufferOffsetAlignment;
             VkDeviceSize alignment = rendererData->physicalDeviceProperties.limits.minUniformBufferOffsetAlignment;
-            SDL_assert(rendererData->currentConstantBufferOffset >= 0 );
+            SDL_assert(rendererData->currentConstantBufferOffset >= 0);
             rendererData->currentConstantBufferOffset += (int32_t)(sizeof(VULKAN_PixelShaderConstants) + alignment - 1) & ~(alignment - 1);
             rendererData->currentConstantBufferOffset += (int32_t)(sizeof(VULKAN_PixelShaderConstants) + alignment - 1) & ~(alignment - 1);
             constantBufferOffset = rendererData->currentConstantBufferOffset;
             constantBufferOffset = rendererData->currentConstantBufferOffset;
         }
         }