diff options
| author | 2015-05-29 21:54:53 -0400 | |
|---|---|---|
| committer | 2015-06-08 19:18:20 -0400 | |
| commit | 66b0d799ee0e22e07ca9a409d42bafe790695f3c (patch) | |
| tree | c668e0500c940d30490baf156b045a3d350d6ab6 /src/common/math_util.h | |
| parent | Liberal texture unbind (clout menu) (diff) | |
| download | yuzu-66b0d799ee0e22e07ca9a409d42bafe790695f3c.tar.gz yuzu-66b0d799ee0e22e07ca9a409d42bafe790695f3c.tar.xz yuzu-66b0d799ee0e22e07ca9a409d42bafe790695f3c.zip | |
Render-to-texture flush, interval math fix
Diffstat (limited to 'src/common/math_util.h')
| -rw-r--r-- | src/common/math_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h index 4b0910741..d44b06e74 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h | |||
| @@ -12,7 +12,7 @@ namespace MathUtil | |||
| 12 | { | 12 | { |
| 13 | 13 | ||
| 14 | inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, unsigned length1) { | 14 | inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, unsigned length1) { |
| 15 | return (std::max(start0, start1) <= std::min(start0 + length0, start1 + length1)); | 15 | return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | template<typename T> | 18 | template<typename T> |