From f101e2710c79610ffb0297562081db63d3d9b152 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 6 Aug 2016 20:01:50 -0700 Subject: [PATCH] Avoid a c++11 rule violation. No default args on lambdas, unfortunately...? --- GPU/Common/GPUStateUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Common/GPUStateUtils.cpp b/GPU/Common/GPUStateUtils.cpp index eb38e02299..88467536e0 100644 --- a/GPU/Common/GPUStateUtils.cpp +++ b/GPU/Common/GPUStateUtils.cpp @@ -1204,12 +1204,12 @@ static void ConvertStencilFunc5551(GenericStencilFuncState &state) { const u8 maskedRef = state.testRef & state.testMask; const u8 usedRef = (state.testRef & 0x80) != 0 ? 0xFF : 0x00; - auto rewriteFunc = [&](GEComparison func, u8 ref, u8 mask = 0xFF) { + auto rewriteFunc = [&](GEComparison func, u8 ref) { // We can only safely rewrite if it doesn't use the ref, or if the ref is the same. if (!usesRef || usedRef == ref) { state.testFunc = func; state.testRef = ref; - state.testMask = mask; + state.testMask = 0xFF; } }; auto rewriteRef = [&](bool always) {