Replaced macros with C++17 attributes.

This commit is contained in:
Бранимир Караџић
2023-12-02 20:16:56 -08:00
parent 837803454a
commit e9e2e224ee
9 changed files with 90 additions and 90 deletions

View File

@@ -1581,24 +1581,24 @@ namespace bgfx { namespace d3d12
case ErrorState::CreatedCommandQueue:
m_device->SetPrivateDataInterface(IID_ID3D12CommandQueue, NULL);
m_cmd.shutdown();
BX_FALLTHROUGH;
[[fallthrough]];
case ErrorState::CreatedDXGIFactory:
DX_RELEASE(m_device, 0);
#if !BX_PLATFORM_LINUX
m_dxgi.shutdown();
#endif // !BX_PLATFORM_LINUX
BX_FALLTHROUGH;
[[fallthrough]];
#if USE_D3D12_DYNAMIC_LIB
case ErrorState::LoadedDXGI:
case ErrorState::LoadedD3D12:
bx::dlclose(m_d3d12Dll);
BX_FALLTHROUGH;
[[fallthrough]];
case ErrorState::LoadedKernel32:
bx::dlclose(m_kernel32Dll);
BX_FALLTHROUGH;
[[fallthrough]];
#endif // USE_D3D12_DYNAMIC_LIB
case ErrorState::Default: