gallium: remove unused pipe_viewport_state::translate[3] and scale[3]
[mesa.git] / src / gallium / tests / graw / shader-leak.c
index fce3683bf3d8d8339d5d4c15be8ae27a36f2a8ab..90704a37f7d9d1fc73a6e161e1dfe2b9e549bc46 100644 (file)
@@ -61,12 +61,10 @@ static void set_viewport( float x, float y,
    vp.scale[0] = half_width;
    vp.scale[1] = half_height;
    vp.scale[2] = half_depth;
-   vp.scale[3] = 1.0f;
 
    vp.translate[0] = half_width + x;
    vp.translate[1] = half_height + y;
    vp.translate[2] = half_depth + z;
-   vp.translate[3] = 0.0f;
 
    ctx->set_viewport_states( ctx, 0, 1, &vp );
 }