From: Christoph Bumiller Date: Sun, 25 Sep 2011 17:03:44 +0000 (+0200) Subject: d3d1x: fix shadow comparison to gallium enum off by one X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5081ebf23803c1f3042c3ca94f97865726d0c9f6;p=mesa.git d3d1x: fix shadow comparison to gallium enum off by one --- 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];