diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |