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 <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent e95a540a0e
commit d9a4be4d0a
  1. 2
      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;

Loading…
Cancel
Save