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

This commit is contained in:
Stefan Dösinger 2009-07-08 09:20:12 +02:00 committed by Alexandre Julliard
parent 3d9809b129
commit 37b73478f1
1 changed files with 6 additions and 2 deletions

View File

@ -304,10 +304,14 @@ 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;
}