From 2448386e8ae46da16a9819f1c94bb412dd095e7e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 26 Aug 2014 00:23:34 -0700 Subject: [PATCH] d3d: Specify clamping incr/decr of stencil. --- GPU/Directx9/StateMappingDX9.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Directx9/StateMappingDX9.cpp b/GPU/Directx9/StateMappingDX9.cpp index 0bc713b739..e330aad1d6 100644 --- a/GPU/Directx9/StateMappingDX9.cpp +++ b/GPU/Directx9/StateMappingDX9.cpp @@ -88,8 +88,8 @@ static const D3DSTENCILOP stencilOps[] = { D3DSTENCILOP_ZERO, D3DSTENCILOP_REPLACE, D3DSTENCILOP_INVERT, - D3DSTENCILOP_INCR, - D3DSTENCILOP_DECR, // don't know if these should be wrap or not + D3DSTENCILOP_INCRSAT, + D3DSTENCILOP_DECRSAT, D3DSTENCILOP_KEEP, // reserved D3DSTENCILOP_KEEP, // reserved };