Fixed uploading Vulkan texture with w*bpp != pitch
This commit is contained in:
parent
3a796c9722
commit
80d2ef7384
1 changed files with 1 additions and 1 deletions
|
@ -2534,7 +2534,7 @@ static VkResult VULKAN_UpdateTextureInternal(VULKAN_RenderData *rendererData, Vk
|
||||||
for (VkDeviceSize row = h; row--; ) {
|
for (VkDeviceSize row = h; row--; ) {
|
||||||
SDL_memcpy(dst, src, length);
|
SDL_memcpy(dst, src, length);
|
||||||
src += pitch;
|
src += pitch;
|
||||||
dst += pitch;
|
dst += length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue