From 26dbcda964eb2846fda4bd2de85da6269a032999 Mon Sep 17 00:00:00 2001 From: Alex Threlfo Date: Mon, 16 Mar 2026 11:22:57 +1100 Subject: [PATCH] fix all renderers defaulting to disabled caused by bkaradzic/bgfx.cmake#22 overriding *any* renderer config defines causes bgfx to disable automatic config derivation for *all* renderers - this meant that force disabling WebGPU was also implicitly disabling all other renderers by default. not sure what the best option is here (outside of explicitly setting all renderers in the build system) but removing this for now to restore expected per-platform defaults. --- cmake/bgfx/bgfx.cmake | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmake/bgfx/bgfx.cmake b/cmake/bgfx/bgfx.cmake index ca432c2..42dd05a 100755 --- a/cmake/bgfx/bgfx.cmake +++ b/cmake/bgfx/bgfx.cmake @@ -64,8 +64,6 @@ if(BGFX_CONFIG_RENDERER_WEBGPU) else() target_link_libraries(bgfx PRIVATE webgpu) endif() -else() - target_compile_definitions(bgfx PRIVATE BGFX_CONFIG_RENDERER_WEBGPU=0) endif() if(EMSCRIPTEN)