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

wined3d: Properly initialize min_rel_offset.

This somehow got lost in 14da44aa.
parent 7f5583ae
...@@ -459,6 +459,7 @@ static HRESULT shader_get_registers_used(IWineD3DBaseShader *iface, const struct ...@@ -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.
......
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