From a6eb4c7e73fa5da50cf6c01c32451c8fb0c400b2 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 25 Nov 2014 23:57:11 +0100 Subject: [PATCH] Warning fix --- GPU/Directx9/StateMappingDX9.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/Directx9/StateMappingDX9.cpp b/GPU/Directx9/StateMappingDX9.cpp index 6c702a80e..28211c8a7 100644 --- a/GPU/Directx9/StateMappingDX9.cpp +++ b/GPU/Directx9/StateMappingDX9.cpp @@ -90,17 +90,19 @@ static const D3DSTENCILOP stencilOps[] = { }; static D3DBLEND toDualSource(D3DBLEND blendfunc) { +#if 0 switch (blendfunc) { // TODO -#if 0 case D3DBLEND_SRCALPHA: return D3DBLEND_SRCCOLOR2; case D3DBLEND_INVSRCALPHA: return D3DBLEND_INVSRCCOLOR2; -#endif default: return blendfunc; } +#else + return blendfunc; +#endif } static D3DBLEND blendColor2Func(u32 fix) {