vrend: Silence warnings on invalid glLineWidth state

Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Jakob Bornecrantz 7 years ago committed by Dave Airlie
parent d3d8ebccc8
commit d252df0469
  1. 3
      src/vrend_renderer.c

@ -3486,7 +3486,8 @@ static void vrend_hw_emit_rs(struct vrend_context *ctx)
}
}
glLineWidth(state->line_width);
/* line_width < 0 is invalid, the guest sometimes forgot to set it. */
glLineWidth(state->line_width <= 0 ? 1.0f : state->line_width);
if (state->rasterizer_discard != ctx->sub->hw_rs_state.rasterizer_discard) {
ctx->sub->hw_rs_state.rasterizer_discard = state->rasterizer_discard;

Loading…
Cancel
Save