Commit 620e2d67 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Pass correct input count to shader_glsl_setup_sm3_rasterizer_input().

We declare min(vec4_varyings(4, gl_info), input_count) shader outputs. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 2da2b966
......@@ -6791,8 +6791,9 @@ static void shader_glsl_generate_sm4_rasterizer_input_setup(struct shader_glsl_p
{
struct wined3d_string_buffer *buffer = &priv->shader_buffer;
input_count = min(vec4_varyings(4, gl_info), input_count);
if (input_count)
declare_out_varying(gl_info, buffer, FALSE, "vec4 ps_link[%u];\n", min(vec4_varyings(4, gl_info), input_count));
declare_out_varying(gl_info, buffer, FALSE, "vec4 ps_link[%u];\n", input_count);
shader_addline(buffer, "void setup_%s_output(in vec4 outputs[%u])\n{\n",
shader_glsl_get_prefix(shader->reg_maps.shader_version.type), shader->limits->packed_output);
......
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