vrend: remove unused members

These two members are written, but never read. Let's get rid of them.

This has the nice side-benefit of eliminating a warning, because of
an implicit cast.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Erik Faye-Lund 6 years ago
parent 7d7b0fb769
commit 93f7a4113e
  1. 4
      src/vrend_renderer.c

@ -534,7 +534,6 @@ struct vrend_sub_context {
struct vrend_surface *surf[PIPE_MAX_COLOR_BUFS];
struct vrend_viewport vps[PIPE_MAX_VIEWPORTS];
float depth_transform, depth_scale;
/* viewport is negative */
uint32_t scissor_state_dirty;
uint32_t viewport_state_dirty;
@ -2382,9 +2381,6 @@ void vrend_set_viewport_states(struct vrend_context *ctx,
if (idx == 0) {
if (ctx->sub->viewport_is_negative != viewport_is_negative)
ctx->sub->viewport_is_negative = viewport_is_negative;
ctx->sub->depth_scale = fabsf(far_val - near_val);
ctx->sub->depth_transform = near_val;
}
if (ctx->sub->vps[idx].near_val != near_val ||

Loading…
Cancel
Save