shader: fix emit_ios params order

Fixes the order of params passed to emit_ios() calls
(swaps winsys_adjust_y_emitted and force_color_two_side).

Signed-off-by: Ryan Neph <ryanneph@google.com>
Reviewed-By: David Riley <davidriley@chromium.org>
macos/master
Ryan Neph 4 years ago
parent 184967eb6f
commit b4dab39270
  1. 4
      src/vrend_shader.c

@ -7026,8 +7026,8 @@ bool vrend_convert_shader(const struct vrend_context *rctx,
ctx.glsl_ver_required = emit_ios(&ctx, &ctx.glsl_strbufs, &ctx.generic_ios,
ctx.front_back_color_emitted_flags,
&ctx.num_interps, &ctx.has_pervertex,
&ctx.winsys_adjust_y_emitted,
&ctx.force_color_two_side,
&ctx.winsys_adjust_y_emitted,
&ctx.shadow_samp_mask);
if (strbuf_get_error(&ctx.glsl_strbufs.glsl_hdr))
@ -7340,8 +7340,8 @@ bool vrend_shader_create_passthrough_tcs(const struct vrend_context *rctx,
ctx.glsl_ver_required = emit_ios(&ctx, &ctx.glsl_strbufs, &ctx.generic_ios,
ctx.front_back_color_emitted_flags,
&ctx.num_interps, &ctx.has_pervertex,
&ctx.winsys_adjust_y_emitted,
&ctx.force_color_two_side,
&ctx.winsys_adjust_y_emitted,
&ctx.shadow_samp_mask);
emit_buf(&ctx.glsl_strbufs, "void main() {\n");

Loading…
Cancel
Save