Commit 2bab1f72 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Check all the ffp_material fields.

The application can override each material parameter with one of the two FFP vertex color attributes. The 'ambient' struct field in the GLSL shader can thus happen to be unused and the GL driver may optimize it away.
parent 0c05f9f8
......@@ -6761,7 +6761,10 @@ static void set_glsl_shader_program(const struct wined3d_context *context, const
break;
}
}
if (entry->vs.material_ambient_location != -1)
if (entry->vs.material_ambient_location != -1 || entry->vs.material_diffuse_location != -1
|| entry->vs.material_specular_location != -1
|| entry->vs.material_emissive_location != -1
|| entry->vs.material_shininess_location != -1)
entry->constant_update_mask |= WINED3D_SHADER_CONST_FFP_MATERIAL;
if (entry->vs.light_ambient_location != -1)
entry->constant_update_mask |= WINED3D_SHADER_CONST_FFP_LIGHTS;
......
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