Commit 6a046edd authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the vpos_uniform field from the wined3d_pixel_shader structure.

parent 43d2515d
......@@ -823,7 +823,7 @@ static void shader_glsl_load_constants(const struct wined3d_context *context,
}
}
if (pshader->u.ps.vpos_uniform)
if (prog->ycorrection_location != -1)
{
float correction_params[4];
......@@ -1043,7 +1043,6 @@ static void shader_generate_glsl_declarations(const struct wined3d_context *cont
+ 1 < gl_info->limits.glsl_ps_float_constants)
{
shader_addline(buffer, "uniform vec4 ycorrection;\n");
shader->u.ps.vpos_uniform = 1;
extra_constants_needed++;
}
else
......
......@@ -2566,7 +2566,6 @@ struct wined3d_pixel_shader
unsigned int declared_in_count;
/* Some information about the shader behavior */
char vpos_uniform;
BOOL color0_mov;
DWORD color0_reg;
};
......
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