2009/7/7 Stefan Dösinger stefan@codeweavers.com:
if (reg->idx <= ((IWineD3DVertexShaderImpl *)This)->min_rel_offset)
{ ((IWineD3DVertexShaderImpl *)This)->min_rel_offset = reg->idx;
else if (reg->idx >= ((IWineD3DVertexShaderImpl *)This)->max_rel_offset)
}
if (reg->idx >= ((IWineD3DVertexShaderImpl *)This)->max_rel_offset)
{ ((IWineD3DVertexShaderImpl *)This)->max_rel_offset = reg->idx;
}
If you're going to fix it, you might as well fix it properly. There's no point in assigning min_rel_offset or max_rel_offset if they're already the same as reg->idx.