-
Move calculation after clip check · 6d55ba73Sean Risser authored
This is to prevent undefined behavior if the calculation overflows. Moving the calculation won't cause issues with the clipping since the projected coordinates are not used in the clipping calculations. Bug chromium:979644 Change-Id: I5a6fba0f067d8d3ad310de573bacd2f68dfe4b78 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34109 Presubmit-Ready: Sean Risser <srisser@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Sean Risser <srisser@google.com>
6d55ba73
×