Commit 97ce5ea3 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie
Browse files

renderer: tinitial abs_s1 value is never read



Found thanks to llvm scan-build.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent ec24bd22
......@@ -1571,7 +1571,6 @@ void vrend_set_viewport_states(struct vrend_context *ctx,
GLsizei width, height;
GLclampd near_val, far_val;
bool viewport_is_negative = (state[0].scale[1] < 0) ? true : false;
GLfloat abs_s1 = fabsf(state->scale[1]);
int i, idx;
if (num_viewports > PIPE_MAX_VIEWPORTS ||
......@@ -1581,9 +1580,9 @@ void vrend_set_viewport_states(struct vrend_context *ctx,
}
for (i = 0; i < num_viewports; i++) {
idx = start_slot + i;
GLfloat abs_s1 = fabsf(state[i].scale[1]);
abs_s1 = fabsf(state[i].scale[1]);
idx = start_slot + i;
width = state[i].scale[0] * 2.0f;
height = abs_s1 * 2.0f;
x = state[i].translate[0] - state[i].scale[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment