wined3d: Get rid of the mostly unused "num_textures_used" field from arbfp_ffp_desc.

This commit is contained in:
Henri Verbeet 2012-10-23 11:23:44 +02:00 committed by Alexandre Julliard
parent 6e4fd6b171
commit 672ad06108
1 changed files with 0 additions and 8 deletions

View File

@ -5618,7 +5618,6 @@ struct arbfp_ffp_desc
{ {
struct ffp_frag_desc parent; struct ffp_frag_desc parent;
GLuint shader; GLuint shader;
unsigned int num_textures_used;
}; };
/* Context activation and GL locking are done by the caller. */ /* Context activation and GL locking are done by the caller. */
@ -6421,13 +6420,6 @@ static void fragment_prog_arbfp(struct wined3d_context *context, const struct wi
ERR("Out of memory\n"); ERR("Out of memory\n");
return; return;
} }
new_desc->num_textures_used = 0;
for (i = 0; i < gl_info->limits.texture_stages; ++i)
{
if (settings.op[i].cop == WINED3D_TOP_DISABLE)
break;
new_desc->num_textures_used = i;
}
memcpy(&new_desc->parent.settings, &settings, sizeof(settings)); memcpy(&new_desc->parent.settings, &settings, sizeof(settings));
new_desc->shader = gen_arbfp_ffp_shader(&settings, gl_info); new_desc->shader = gen_arbfp_ffp_shader(&settings, gl_info);