Backends: WebGPU: fixed rendering when a depth buffer is enabled. (#5869)

This commit is contained in:
Peter Nimmervoll
2022-11-07 21:35:05 +01:00
committed by ocornut
parent 7380b9816e
commit 00b6370848
4 changed files with 15 additions and 12 deletions

View File

@ -76,7 +76,7 @@ int main(int, char**)
// Setup Platform/Renderer backends
ImGui_ImplGlfw_InitForOther(window, true);
ImGui_ImplWGPU_Init(wgpu_device, 3, WGPUTextureFormat_RGBA8Unorm);
ImGui_ImplWGPU_Init(wgpu_device, 3, WGPUTextureFormat_RGBA8Unorm, WGPUTextureFormat_Undefined);
// Load Fonts
// - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.