Explorar o código

Fixed uploading Vulkan texture with w*bpp != pitch

Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
80d2ef7384
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/render/vulkan/SDL_render_vulkan.c

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

@@ -2534,7 +2534,7 @@ static VkResult VULKAN_UpdateTextureInternal(VULKAN_RenderData *rendererData, Vk
         for (VkDeviceSize row = h; row--; ) {
             SDL_memcpy(dst, src, length);
             src += pitch;
-            dst += pitch;
+            dst += length;
         }
     }