st/mesa: unify fail paths for update_single_texture

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák
2017-06-12 19:29:37 +02:00
parent d14bb37a0a
commit f368ea37a2
2 changed files with 2 additions and 7 deletions

View File

@@ -408,10 +408,6 @@ st_get_texture_sampler_view_from_stobj(struct st_context *st,
{
struct pipe_sampler_view **sv;
if (!stObj || !stObj->pt) {
return NULL;
}
sv = st_texture_get_sampler_view(st, stObj);
if (*sv) {