From b91b7aaa0ab7b69fc265dc4bbac1e2d4c2b4f38b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 10 May 2020 15:12:54 -0700 Subject: [PATCH] Draw: Enable backwards compat on D3D11 shaders. To match/support postshaders. --- ext/native/thin3d/thin3d_d3d11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/native/thin3d/thin3d_d3d11.cpp b/ext/native/thin3d/thin3d_d3d11.cpp index cbb5753fc2..9db30a784f 100644 --- a/ext/native/thin3d/thin3d_d3d11.cpp +++ b/ext/native/thin3d/thin3d_d3d11.cpp @@ -817,7 +817,8 @@ ShaderModule *D3D11DrawContext::CreateShaderModule(ShaderStage stage, ShaderLang ID3DBlob *compiledCode = nullptr; ID3DBlob *errorMsgs = nullptr; - HRESULT result = ptr_D3DCompile(data, dataSize, nullptr, nullptr, nullptr, "main", target, 0, 0, &compiledCode, &errorMsgs); + int flags = D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY; + HRESULT result = ptr_D3DCompile(data, dataSize, nullptr, nullptr, nullptr, "main", target, flags, 0, &compiledCode, &errorMsgs); if (compiledCode) { compiled = std::string((const char *)compiledCode->GetBufferPointer(), compiledCode->GetBufferSize()); compiledCode->Release();