mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-18 09:18:14 +00:00
Fixed uploading Vulkan texture with w*bpp != pitch
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user