Commit b5e7a2a0 by Nicolas Capens

Fixed using pixel shader constants in pixel shaders instead of vertex shader…

Fixed using pixel shader constants in pixel shaders instead of vertex shader constants, for relative addressing.
parent 7aba0a37
...@@ -5801,7 +5801,7 @@ namespace sw ...@@ -5801,7 +5801,7 @@ namespace sw
} }
else if(var.rel.type == Shader::PARAMETER_CONST) else if(var.rel.type == Shader::PARAMETER_CONST)
{ {
RValue<Float4> c = *Pointer<Float4>(r.data + OFFSET(DrawData,vs.c[var.rel.index])); RValue<Float4> c = *Pointer<Float4>(r.data + OFFSET(DrawData,ps.c[var.rel.index]));
return RoundInt(Extract(c, 0)) * var.rel.scale; return RoundInt(Extract(c, 0)) * var.rel.scale;
} }
......
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