From 5081ebf23803c1f3042c3ca94f97865726d0c9f6 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 25 Sep 2011 19:03:44 +0200 Subject: d3d1x: fix shadow comparison to gallium enum off by one --- src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index fdfaacc88b9..401e3121c43 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -594,7 +594,7 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen if(sampler_desc->Filter & 0x80) { state.compare_mode = PIPE_TEX_COMPARE_R_TO_TEXTURE; - state.compare_func = sampler_desc->ComparisonFunc; + state.compare_func = sampler_desc->ComparisonFunc - 1; } state.wrap_s = d3d11_to_pipe_wrap[sampler_desc->AddressU]; state.wrap_t = d3d11_to_pipe_wrap[sampler_desc->AddressV]; -- cgit v1.2.3