util/box: fix off-by-one calc error in intersection funcs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 27 Feb 2023 18:41:17 +0000 (13:41 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 6 Mar 2023 03:47:06 +0000 (03:47 +0000)
commitd2de2bb9c5381dbee6a8942d523f3a08d4044cdd
tree90a0f24095a282c5551130c6c05064c4dc8f4802
parent3c0fad058a8ce4c1e55485eb74883185c88b73ce
util/box: fix off-by-one calc error in intersection funcs

the "right-most" boundary needs the -1 since it isn't inclusive

oops

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21665>
src/gallium/auxiliary/util/u_box.h