diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-04-28 17:07:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-28 17:07:37 +1000 |
| commit | f7199397a0195f7fb454147b4d68a38235eaab64 (patch) | |
| tree | 98ea19003c1cabe662ee893ec9787b9461f2b975 /Source/Core/VideoCommon/FramebufferShaderGen.cpp | |
| parent | 96c69fd0481675c0025065ee9ce43b0a0d0e9605 (diff) | |
| parent | 025767c9293a8ecf770daef063005491898206f6 (diff) | |
Merge pull request #8047 from stenzek/d3d-feature-level-10
D3D11: Fix Dolphin crashing on feature level 10.0 devices
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferShaderGen.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/FramebufferShaderGen.cpp b/Source/Core/VideoCommon/FramebufferShaderGen.cpp index c69f07c10d..dfb86d2be2 100644 --- a/Source/Core/VideoCommon/FramebufferShaderGen.cpp +++ b/Source/Core/VideoCommon/FramebufferShaderGen.cpp @@ -410,10 +410,13 @@ std::string GenerateFormatConversionShader(EFBReinterpretType convtype, u32 samp { std::stringstream ss; EmitSamplerDeclarations(ss, 0, 1, samples > 1); - EmitPixelMainDeclaration(ss, 1, 0, "float4", - GetAPIType() == APIType::D3D ? - "in float4 ipos : SV_Position, in uint isample : SV_SampleIndex, " : - ""); + EmitPixelMainDeclaration( + ss, 1, 0, "float4", + GetAPIType() == APIType::D3D ? + (g_ActiveConfig.bSSAA ? + "in float4 ipos : SV_Position, in uint isample : SV_SampleIndex, " : + "in float4 ipos : SV_Position, ") : + ""); ss << "{\n"; ss << " int layer = int(v_tex0.z);\n"; if (GetAPIType() == APIType::D3D) |
