Commit 232c456d by Chris Forbes

Fix setup code to deal with inverted area sign

`d` is used to drive some indexing math later. Bug: b/127343247 Change-Id: Id9da208f5a7b678748f129f97de03f5bf04bcbe1 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26128Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent d00375a6
...@@ -107,7 +107,7 @@ namespace sw ...@@ -107,7 +107,7 @@ namespace sw
If(!frontFacing) Return(false); If(!frontFacing) Return(false);
} }
d = IfThenElse(A < 0.0f, d, Int(0)); d = IfThenElse(A > 0.0f, d, Int(0));
if(state.twoSidedStencil) if(state.twoSidedStencil)
{ {
......
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