Commit 37b73478 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: An indirect address op can adjust min and max at the same time.

parent 3d9809b1
......@@ -304,11 +304,15 @@ static void shader_record_register_usage(IWineD3DBaseShaderImpl *This, struct sh
{
if (shader_type != WINED3D_SHADER_TYPE_PIXEL)
{
if (reg->idx <= ((IWineD3DVertexShaderImpl *)This)->min_rel_offset)
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;
}
}
reg_maps->usesrelconstF = TRUE;
}
else
......
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