From f51e393d7b0663ccac7cf155d8b8fc3df2a4acd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 31 Oct 2025 08:50:20 -0700 Subject: [PATCH] Cleanup. --- include/bgfx/bgfx.h | 14 +++++++------- src/renderer_d3d12.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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) { }