Description
While learning BGFX, I encountered a bug where the application freezes when calling bgfx::shutdown() after initializing BGFX with the following settings:
init.resolution.width = vm.width;
init.resolution.height = vm.height;
init.resolution.reset = BGFX_RESET_VSYNC | BGFX_RESET_MSAA_X8;
init.type = bgfx::RendererType::Direct3D12;
init.vendorId = BGFX_PCI_ID_INTEL;
The application stops responding, and the output debugger shows the following message:
Expected Behavior
The application should exit cleanly after freeing all allocated resources.
Steps to Reproduce
- Initialize BGFX with the settings above.
- Call bgfx::init(init) to initialize.
- Run the application and then call bgfx::shutdown() to clean up.
- Observe that the application freezes or gets stuck.
Environment
- OS: Windows 11
- GPU: Intel Integrated Graphics, Intel UHD
Additional Context
- I tested the same code with other renderer types (
bgfx::RendererType::OpenGL, bgfx::RendererType::Direct3D11), and they exited fine.
- Testing on another GPU (NVIDIA RTX) with
RendererType::Direct3D12 also worked without issues.
Description
While learning BGFX, I encountered a bug where the application freezes when calling
bgfx::shutdown()after initializing BGFX with the following settings:The application stops responding, and the output debugger shows the following message:
Expected Behavior
The application should exit cleanly after freeing all allocated resources.
Steps to Reproduce
Environment
Additional Context
bgfx::RendererType::OpenGL,bgfx::RendererType::Direct3D11), and they exited fine.RendererType::Direct3D12also worked without issues.