Commit 17f26865 by Shahbaz Youssefi Committed by Commit Bot

Vulkan: Fix missing deepCopy() from dFdy transform

Bug: angleproject:2733 Change-Id: Id1375618e6d91eb1d577abf2f8c707a63ab17b57 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1767364Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 1fe8622d
...@@ -64,7 +64,8 @@ bool Traverser::visitUnary(Visit visit, TIntermUnary *node) ...@@ -64,7 +64,8 @@ bool Traverser::visitUnary(Visit visit, TIntermUnary *node)
// Correct dFdy()'s value: // Correct dFdy()'s value:
// (dFdy() * ANGLEUniforms.viewportYScale) // (dFdy() * ANGLEUniforms.viewportYScale)
TIntermBinary *correctedDfdy = new TIntermBinary(multiplyOp, newDfdy, mViewportYScale); TIntermBinary *correctedDfdy =
new TIntermBinary(multiplyOp, newDfdy, mViewportYScale->deepCopy());
// Replace the old dFdy node with the new node that contains the corrected value // Replace the old dFdy node with the new node that contains the corrected value
queueReplacement(correctedDfdy, OriginalNode::IS_DROPPED); queueReplacement(correctedDfdy, OriginalNode::IS_DROPPED);
......
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