From 554b77b47a75de70319f21ffea6d24129f91e083 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 11 Oct 2019 17:01:23 +0200 Subject: [PATCH] [d3d11] Initialize feature level to zero in D3D11CreateDevice Fixes a wine test failure. --- src/d3d11/d3d11_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d3d11/d3d11_main.cpp b/src/d3d11/d3d11_main.cpp index aca46d86..8bdf0009 100644 --- a/src/d3d11/d3d11_main.cpp +++ b/src/d3d11/d3d11_main.cpp @@ -115,6 +115,9 @@ extern "C" { InitReturnPtr(ppSwapChain); InitReturnPtr(ppImmediateContext); + if (pFeatureLevel) + *pFeatureLevel = D3D_FEATURE_LEVEL(0); + HRESULT hr; Com dxgiFactory = nullptr;