From 2efabd9f5a711a7f6cd1846630244b7814bf25b3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 10 Nov 2014 00:37:03 +0100 Subject: gallium: remove unused pipe_viewport_state::translate[3] and scale[3] Almost all drivers ignore them. --- src/gallium/auxiliary/hud/hud_context.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gallium/auxiliary/hud/hud_context.c') diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 18a878118cb..98678fc9f1e 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -444,11 +444,9 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex) viewport.scale[0] = 0.5f * hud->fb_width; viewport.scale[1] = 0.5f * hud->fb_height; viewport.scale[2] = 1.0f; - viewport.scale[3] = 1.0f; viewport.translate[0] = 0.5f * hud->fb_width; viewport.translate[1] = 0.5f * hud->fb_height; viewport.translate[2] = 0.0f; - viewport.translate[3] = 0.0f; cso_set_framebuffer(cso, &fb); cso_set_sample_mask(cso, ~0); -- cgit v1.2.3