summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2010-03-11 15:25:52 +0100
committerMichal Krol <[email protected]>2010-03-11 15:25:52 +0100
commit252dc5f897f9d124459e3afebf6686d1fe271511 (patch)
tree43ba2ac33e65bea7a90e1776f69f5dba7e9499d2 /src/gallium/auxiliary
parent5d4360d10cd39e28ee3b563e95959f3dd22c5242 (diff)
gallium: Use last_level for pipe_sampler_view instead of num_levels.
It's more consistent with the rest of the interfaces.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_sampler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_sampler.c b/src/gallium/auxiliary/util/u_sampler.c
index 08cf1fcf223..4d8f861ce49 100644
--- a/src/gallium/auxiliary/util/u_sampler.c
+++ b/src/gallium/auxiliary/util/u_sampler.c
@@ -41,7 +41,7 @@ default_template(struct pipe_sampler_view *view,
view->format = format;
view->first_level = 0;
- view->num_levels = texture->last_level + 1;
+ view->last_level = texture->last_level;
view->swizzle_r = PIPE_SWIZZLE_RED;
view->swizzle_g = PIPE_SWIZZLE_GREEN;
view->swizzle_b = PIPE_SWIZZLE_BLUE;