Commit e4f50de3 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the unused "half" GLSL variable in shader_glsl_ffp_vertex_lighting().

parent d42ed759
...@@ -4836,7 +4836,7 @@ static void shader_glsl_ffp_vertex_lighting(struct wined3d_shader_buffer *buffer ...@@ -4836,7 +4836,7 @@ static void shader_glsl_ffp_vertex_lighting(struct wined3d_shader_buffer *buffer
shader_addline(buffer, "vec3 ambient = gl_LightModel.ambient.xyz;\n"); shader_addline(buffer, "vec3 ambient = gl_LightModel.ambient.xyz;\n");
shader_addline(buffer, "vec3 diffuse = vec3(0.0);\n"); shader_addline(buffer, "vec3 diffuse = vec3(0.0);\n");
shader_addline(buffer, "vec4 specular = vec4(0.0);\n"); shader_addline(buffer, "vec4 specular = vec4(0.0);\n");
shader_addline(buffer, "vec3 dir, dst, half;\n"); shader_addline(buffer, "vec3 dir, dst;\n");
shader_addline(buffer, "float att, t;\n"); shader_addline(buffer, "float att, t;\n");
ambient = shader_glsl_ffp_mcs(settings->ambient_source, "gl_FrontMaterial.ambient"); ambient = shader_glsl_ffp_mcs(settings->ambient_source, "gl_FrontMaterial.ambient");
...@@ -4846,7 +4846,6 @@ static void shader_glsl_ffp_vertex_lighting(struct wined3d_shader_buffer *buffer ...@@ -4846,7 +4846,6 @@ static void shader_glsl_ffp_vertex_lighting(struct wined3d_shader_buffer *buffer
for (i = 0; i < MAX_ACTIVE_LIGHTS; ++i) for (i = 0; i < MAX_ACTIVE_LIGHTS; ++i)
{ {
light_type = (settings->light_type >> WINED3D_FFP_LIGHT_TYPE_SHIFT(i)) & WINED3D_FFP_LIGHT_TYPE_MASK; light_type = (settings->light_type >> WINED3D_FFP_LIGHT_TYPE_SHIFT(i)) & WINED3D_FFP_LIGHT_TYPE_MASK;
switch (light_type) switch (light_type)
{ {
......
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