aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_texture.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-13 15:20:08 -0600
committerBrian <[email protected]>2007-08-13 15:20:08 -0600
commit8cc668a4a8d67af21af6883e18fe7423f28999f9 (patch)
treedf204f469de37abc4a013602a67f164ff2d85599 /src/mesa/state_tracker/st_atom_texture.c
parentc271078048770a31028836eda684a6dbffc13cf5 (diff)
fix some issues with texture/mipmap_tree state tracking
Diffstat (limited to 'src/mesa/state_tracker/st_atom_texture.c')
-rw-r--r--src/mesa/state_tracker/st_atom_texture.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c
index eeaf68b0012..bafd38695f6 100644
--- a/src/mesa/state_tracker/st_atom_texture.c
+++ b/src/mesa/state_tracker/st_atom_texture.c
@@ -51,8 +51,8 @@ update_textures(struct st_context *st)
for (u = 0; u < st->ctx->Const.MaxTextureImageUnits; u++) {
struct gl_texture_object *texObj
= st->ctx->Texture.Unit[u]._Current;
+ struct pipe_mipmap_tree *mt;
if (texObj) {
- struct pipe_mipmap_tree *mt;
GLboolean flush, retval;
retval = st_finalize_mipmap_tree(st->ctx, st->pipe, u, &flush);
@@ -60,12 +60,13 @@ update_textures(struct st_context *st)
retval, flush);
mt = st_get_texobj_mipmap_tree(texObj);
-
- st->pipe->set_texture_state(st->pipe, u, mt);
}
else {
- st->pipe->set_texture_state(st->pipe, u, NULL);
+ mt = NULL;
}
+
+ st->state.texture[u] = mt;
+ st->pipe->set_texture_state(st->pipe, u, mt);
}
}