Skip to content

BGFX Shutdown Freezes on Direct3D12 with Intel GPU #3381

@CDevJoud

Description

@CDevJoud

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

  1. Initialize BGFX with the settings above.
  2. Call bgfx::init(init) to initialize.
  3. Run the application and then call bgfx::shutdown() to clean up.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions