Бранимир Караџић 3 miesięcy temu
rodzic
commit
f51e393d7b
2 zmienionych plików z 8 dodań i 8 usunięć
  1. 7 7
      include/bgfx/bgfx.h
  2. 1 1
      src/renderer_d3d12.cpp

+ 7 - 7
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)

+ 1 - 1
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)
 		{
 		}