Vulkan/Texture: Allow uploading non-zero layers/levels

This commit is contained in:
Connor McLaughlin
2022-09-26 21:05:44 +10:00
parent aff9f1c25f
commit 8d32547ec9
4 changed files with 14 additions and 12 deletions

View File

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