Stefan Dösinger : wined3d: An indirect address op can adjust min and max at the same time.
Alexandre Julliard
julliard at winehq.org
Thu Jul 9 10:57:00 CDT 2009
Module: wine
Branch: master
Commit: 37b73478f1876769943206571f11b4022a7d1f47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=37b73478f1876769943206571f11b4022a7d1f47
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Jul 8 09:20:12 2009 +0200
wined3d: An indirect address op can adjust min and max at the same time.
---
dlls/wined3d/baseshader.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c
index 12fc28c..411665e 100644
--- a/dlls/wined3d/baseshader.c
+++ b/dlls/wined3d/baseshader.c
@@ -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;
}
More information about the wine-cvs
mailing list