Backends, Examples: WebGPU: simplified ifndef (#8381)

This commit is contained in:
ocornut
2025-11-07 13:24:10 +01:00
parent 635eb1d8e9
commit 86daa8930e
5 changed files with 10 additions and 10 deletions

View File

@@ -1015,7 +1015,7 @@ void ImGui_ImplWGPU_DebugPrintAdapterInfo(const WGPUAdapter& adapter)
wgpuAdapterInfoFreeMembers(info);
}
#if defined(IMGUI_IMPL_WEBGPU_BACKEND_WGPU) || defined(IMGUI_IMPL_WEBGPU_BACKEND_DAWN) && !defined(__EMSCRIPTEN__)
#ifndef __EMSCRIPTEN__
#if defined(__APPLE__)
// MacOS specific: is necessary to compile with "-x objective-c++" flags
@@ -1079,7 +1079,7 @@ WGPUSurface ImGui_ImplWGPU_CreateWGPUSurfaceHelper(ImGui_ImplWGPU_CreateSurfaceI
#endif
return surface;
}
#endif
#endif // #ifndef __EMSCRIPTEN__
//-----------------------------------------------------------------------------