From d9a4be4d0a5b2239734638750c23233c7146fb7e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 23 Jan 2019 14:44:54 +0100 Subject: [PATCH] renderer: remove dead code tgsitargettogltarget never returns a value that evaluates to zero, so this condition can't trigger. Let's drop the code. Signed-off-by: Erik Faye-Lund Reviewed-by: Gurchetan Singh Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index fac61d4..5496971 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -1802,8 +1802,6 @@ int vrend_create_sampler_view(struct vrend_context *ctx, vrend_resource_reference(&view->texture, res); view->id = view->texture->id; - if (!view->target) - view->target = view->texture->target; if (has_feature(feat_texture_view) && !view->texture->is_buffer) { enum pipe_format format;