diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-15 15:55:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-15 15:56:02 +0300 |
commit | cd849076d2bc61a077a2ef072a0f2eac258ff822 (patch) | |
tree | b4f318ab6c319339336f781d18a7fe9905f324e1 | |
parent | dd25d47e8a14365e359bbfa493dc8d7e29e96cbd (diff) |
Fix T80681 Wireframe is not visible on square planes with 16384 quads
Fix wrong logic.
-rw-r--r-- | source/blender/gpu/intern/gpu_index_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_index_buffer.cc b/source/blender/gpu/intern/gpu_index_buffer.cc index 5448e6efbe4..36f18f2da49 100644 --- a/source/blender/gpu/intern/gpu_index_buffer.cc +++ b/source/blender/gpu/intern/gpu_index_buffer.cc @@ -296,7 +296,7 @@ void IndexBuf::squeeze_indices_short(uint min_idx, uint max_idx) if (max_idx >= 0xFFFF) { index_base_ = min_idx; for (uint i = 0; i < index_len_; i++) { - ushort_idx[i] = (uint16_t)MAX2(0xFFFF, uint_idx[i] - min_idx); + ushort_idx[i] = (uint16_t)MIN2(0xFFFF, uint_idx[i] - min_idx); } } else { |