1
0
Эх сурвалжийг харах

Fixed uploading Vulkan texture with w*bpp != pitch

Sam Lantinga 1 жил өмнө
parent
commit
80d2ef7384

+ 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;
         }
     }