diff --git a/include/bgfx/bgfx.h b/include/bgfx/bgfx.h index 0bc135070..176b52676 100644 --- a/include/bgfx/bgfx.h +++ b/include/bgfx/bgfx.h @@ -410,16 +410,16 @@ namespace bgfx struct NativeWindowHandleType { - enum Enum - { - Default = 0, //!< Platform default handle type (X11 on Linux). - Wayland, //!< Wayland. + enum Enum + { + Default = 0, //!< Platform default handle type (X11 on Linux). + Wayland, //!< Wayland. - Count - }; + Count + }; }; - static const uint16_t kInvalidHandle = UINT16_MAX; + constexpr uint16_t kInvalidHandle = UINT16_MAX; BGFX_HANDLE(DynamicIndexBufferHandle) BGFX_HANDLE(DynamicVertexBufferHandle) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 703d11f99..25457d05f 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -706,6 +706,7 @@ namespace bgfx { namespace d3d12 , m_winPixEvent(NULL) , m_featureLevel(D3D_FEATURE_LEVEL(0) ) , m_swapChain(NULL) + , m_backBufferDepthStencil(NULL) , m_wireframe(false) , m_lost(false) , m_maxAnisotropy(1) @@ -713,7 +714,6 @@ namespace bgfx { namespace d3d12 , m_backBufferColorIdx(0) , m_rtMsaa(false) , m_directAccessSupport(false) - , m_backBufferDepthStencil(NULL) { }