diff options
author | Christoph Bumiller <[email protected]> | 2011-09-25 19:03:44 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:37 +0200 |
commit | 5081ebf23803c1f3042c3ca94f97865726d0c9f6 (patch) | |
tree | 03ce41c0ded16054029cd45727b3184e2792adb9 /src/gallium/state_trackers/d3d1x | |
parent | c0e03c7694aa53c0dfb0513c57728c3582d8da7d (diff) |
d3d1x: fix shadow comparison to gallium enum off by one
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-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]; |