wined3d: shader_get_registers_used() is only called during shader initialization.

This commit is contained in:
Henri Verbeet 2010-12-03 00:55:48 +01:00 committed by Alexandre Julliard
parent 8c1e326e3c
commit 6a646ac25d

View File

@ -461,13 +461,6 @@ static HRESULT shader_get_registers_used(IWineD3DBaseShader *iface, const struct
memset(reg_maps, 0, sizeof(*reg_maps));
reg_maps->min_rel_offset = ~0U;
/* get_registers_used() is called on every compile on some 1.x shaders,
* which can result in stacking up a collection of local constants.
* Delete the old constants if existing. */
shader_delete_constant_list(&shader->baseShader.constantsF);
shader_delete_constant_list(&shader->baseShader.constantsB);
shader_delete_constant_list(&shader->baseShader.constantsI);
fe->shader_read_header(fe_data, &ptr, &shader_version);
reg_maps->shader_version = shader_version;