summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_state.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state.c b/src/mesa/pipe/i915simple/i915_state.c
index d732e879db0..ebc55eb6346 100644
--- a/src/mesa/pipe/i915simple/i915_state.c
+++ b/src/mesa/pipe/i915simple/i915_state.c
@@ -135,12 +135,11 @@ static void i915_set_sampler_state(struct pipe_context *pipe,
static void i915_set_texture_state(struct pipe_context *pipe,
- GLuint unit,
- struct pipe_texture_object *texture)
+ GLuint unit,
+ struct pipe_mipmap_tree *texture)
{
struct i915_context *i915 = i915_context(pipe);
- assert(unit < PIPE_MAX_SAMPLERS);
i915->texture[unit] = texture; /* ptr, not struct */
i915->dirty |= I915_NEW_TEXTURE;