fix YUV upload

pull/1/head
cosmonaut 2021-02-27 13:03:10 -08:00
parent b6a09517c2
commit dd1ba55312
1 changed files with 3 additions and 3 deletions

View File

@ -3428,7 +3428,7 @@ static void VULKAN_INTERNAL_RecreateSwapchain(VulkanRenderer* renderer)
/* Data Buffer */
/* buffer should be an alloc'd but uninitialized VulkanTexture */
/* buffer should be an alloc'd but uninitialized VulkanBuffer */
static uint8_t VULKAN_INTERNAL_CreateBuffer(
VulkanRenderer *renderer,
VkDeviceSize size,
@ -6308,7 +6308,7 @@ static void VULKAN_SetTextureDataYUV(
/* V */
imageCopy.bufferOffset = renderer->textureStagingBufferOffset + uvDataLength;
imageCopy.bufferOffset = renderer->textureStagingBufferOffset + yDataLength + uvDataLength;
tex = (VulkanTexture*) v;
@ -6341,7 +6341,7 @@ static void VULKAN_SetTextureDataYUV(
&imageCopy
);
renderer->textureStagingBufferOffset += dataLength;
renderer->textureStagingBufferOffset += yDataLength + uvDataLength;
if (tex->usageFlags & VK_IMAGE_USAGE_SAMPLED_BIT)
{