aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_texture.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-04-11 14:30:15 +1000
committerTimothy Arceri <[email protected]>2017-04-12 12:00:35 +1000
commit9bd718407819ab76386b30a83b4a0a0b7c1cacf1 (patch)
treee21b3a31485b6ba7faee7a31674e378302742993 /src/mesa/state_tracker/st_atom_texture.c
parentc72170fb1fccbf5a9f538fa080bd76b9264b608f (diff)
mesa/st: remove _mesa_get_fallback_texture() calls
These calls look like leftover from fallback texture support first being added to the st in 8f6d9e12be0be and then later being added to core mesa in 00e203fe17cbf21. The piglit test fp-incomplete-tex continues to work with this change. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_texture.c')
-rw-r--r--src/mesa/state_tracker/st_atom_texture.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c
index 5b481ec4344..fa4b6448ea4 100644
--- a/src/mesa/state_tracker/st_atom_texture.c
+++ b/src/mesa/state_tracker/st_atom_texture.c
@@ -66,11 +66,8 @@ update_single_texture(struct st_context *st,
samp = _mesa_get_samplerobj(ctx, texUnit);
texObj = ctx->Texture.Unit[texUnit]._Current;
+ assert(texObj);
- if (!texObj) {
- texObj = _mesa_get_fallback_texture(ctx, TEXTURE_2D_INDEX);
- samp = &texObj->Sampler;
- }
stObj = st_texture_object(texObj);
retval = st_finalize_texture(ctx, st->pipe, texObj, 0);