From 7d2571461cecc92a8519c6309f0f0e4f05656104 Mon Sep 17 00:00:00 2001 From: Dev-Taehui Date: Wed, 15 Mar 2023 08:50:43 +0900 Subject: [PATCH] Change to array creation --- winrt/lib/drawing/CanvasDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winrt/lib/drawing/CanvasDevice.cpp b/winrt/lib/drawing/CanvasDevice.cpp index 3c341e3a0..d770395fb 100644 --- a/winrt/lib/drawing/CanvasDevice.cpp +++ b/winrt/lib/drawing/CanvasDevice.cpp @@ -49,7 +49,7 @@ namespace ABI { namespace Microsoft { namespace Graphics { namespace Canvas deviceFlags |= D3D11_CREATE_DEVICE_DEBUG; } - auto featureLevels = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2, D3D_FEATURE_LEVEL_9_1 }; + D3D_FEATURE_LEVEL featureLevels[7] { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2, D3D_FEATURE_LEVEL_9_1 }; ComPtr createdDevice; if (SUCCEEDED(D3D11CreateDevice( NULL, // adapter