wined3d: Properly initialize min_rel_offset.

This somehow got lost in 14da44aa36.
This commit is contained in:
Henri Verbeet 2010-12-03 00:55:44 +01:00 committed by Alexandre Julliard
parent 7f5583aee9
commit b72b037128
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ static HRESULT shader_get_registers_used(IWineD3DBaseShader *iface, const struct
const DWORD *ptr = byte_code; const DWORD *ptr = byte_code;
memset(reg_maps, 0, sizeof(*reg_maps)); 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, /* get_registers_used() is called on every compile on some 1.x shaders,
* which can result in stacking up a collection of local constants. * which can result in stacking up a collection of local constants.