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,10 +304,14 @@ static void shader_record_register_usage(IWineD3DBaseShaderImpl *This, struct sh ...@@ -304,10 +304,14 @@ static void shader_record_register_usage(IWineD3DBaseShaderImpl *This, struct sh
{ {
if (shader_type != WINED3D_SHADER_TYPE_PIXEL) 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; ((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; ((IWineD3DVertexShaderImpl *)This)->max_rel_offset = reg->idx;
}
} }
reg_maps->usesrelconstF = TRUE; reg_maps->usesrelconstF = TRUE;
} }
......
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