mesa/st: remove _mesa_get_fallback_texture() calls
These calls look like leftover from fallback texture support first being added to the st in8f6d9e12be
and then later being added to core mesa in00e203fe17
. The piglit test fp-incomplete-tex continues to work with this change. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c72170fb1f
commit
9bd7184078
|
@ -137,13 +137,9 @@ convert_sampler(struct st_context *st,
|
|||
GLenum texBaseFormat;
|
||||
|
||||
texobj = ctx->Texture.Unit[texUnit]._Current;
|
||||
if (!texobj) {
|
||||
texobj = _mesa_get_fallback_texture(ctx, TEXTURE_2D_INDEX);
|
||||
msamp = &texobj->Sampler;
|
||||
} else {
|
||||
msamp = _mesa_get_samplerobj(ctx, texUnit);
|
||||
}
|
||||
assert(texobj);
|
||||
|
||||
msamp = _mesa_get_samplerobj(ctx, texUnit);
|
||||
texBaseFormat = _mesa_texture_base_format(texobj);
|
||||
|
||||
memset(sampler, 0, sizeof(*sampler));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue