Vulkan/Texture: Fix incorrect upload image layout

This commit is contained in:
Stenzek
2023-02-05 13:03:10 +10:00
parent 2dd374d2a7
commit 1371dcfa4a
4 changed files with 14 additions and 6 deletions

View File

@ -413,6 +413,7 @@ bool ImGui_ImplVulkan_CreateFontsTexture()
// Store our identifier
bd->FontTexture.Update(0, 0, width, height, 0, 0, pixels, sizeof(u32) * width);
bd->FontTexture.TransitionToLayout(g_vulkan_context->GetCurrentCommandBuffer(), VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
io.Fonts->SetTexID((ImTextureID)&bd->FontTexture);
return true;
}