summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heidelberg <[email protected]>2014-11-25 00:38:09 +0100
committerEmil Velikov <[email protected]>2014-12-03 22:59:21 +0000
commitcfbc474d8024662cc67f7da990d30711e89b68a3 (patch)
tree40c05d53b4b6e8d66793564ce9ec1368f407806a
parent360872a45eaa0d785b95fcc780347ed2324fee68 (diff)
st/nine: remove unused pipe_viewport_state::translate[3] and scale[3]
2efabd9f5a711a7f6cd1846630244b7814bf25b3 removed them as unused. This caused random memory overwrites (reported by Coverity). Cc: "10.4" <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Axel Davy <[email protected]> Signed-off-by: David Heidelberg <[email protected]> (cherry picked from commit 90fea6b3e0153c12d8d1a0f817c56a3efa0ce99c)
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 6924449cb7e..37de6a30492 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -141,11 +141,9 @@ update_viewport(struct NineDevice9 *device)
pvport.scale[0] = (float)vport->Width * 0.5f;
pvport.scale[1] = (float)vport->Height * -0.5f;
pvport.scale[2] = vport->MaxZ - vport->MinZ;
- pvport.scale[3] = 1.0f;
pvport.translate[0] = (float)vport->Width * 0.5f + (float)vport->X;
pvport.translate[1] = (float)vport->Height * 0.5f + (float)vport->Y;
pvport.translate[2] = vport->MinZ;
- pvport.translate[3] = 0.0f;
pipe->set_viewport_states(pipe, 0, 1, &pvport);
}