diff --git a/includes/xna-dx/implementations.hpp b/includes/xna-dx/implementations.hpp index f482526..c1dfdfc 100644 --- a/includes/xna-dx/implementations.hpp +++ b/includes/xna-dx/implementations.hpp @@ -31,7 +31,7 @@ namespace xna { std::shared_ptr RenderTarget2D; intptr_t WindowHandle{ 0 }; - D3D_FEATURE_LEVEL FeatureLevels[7] = + inline static constexpr D3D_FEATURE_LEVEL FeatureLevels[7] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, diff --git a/sources/framework-dx/device.cpp b/sources/framework-dx/device.cpp index 6f049e7..d8fadb2 100644 --- a/sources/framework-dx/device.cpp +++ b/sources/framework-dx/device.cpp @@ -248,7 +248,7 @@ namespace xna { //UINT Flags, createDeviceFlags, //_In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels, - impl.FeatureLevels, + GraphicsDeviceImplementation::FeatureLevels, //UINT FeatureLevels, 7, //UINT SDKVersion,