diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-02-24 00:35:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-02-24 00:36:04 +0300 |
commit | 2f8d8b5e5e4b851258a369c0226e3eca49ab5b2c (patch) | |
tree | 2cbe1dc8c883a75fc117284085cc6d1a12b94d8d /source/blender/gpu/intern | |
parent | f680ab9c4e2ee467017405d6a32d770c576a6f69 (diff) |
GPUBuffer: Fix fast navigate in on smoooth multires grid
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 242882b011a..a59b22dee0d 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -418,8 +418,8 @@ static void gpu_pbvh_grid_fill_index_buffers( if (grid_visible) { /* Grid corners */ - v0 = offset + gridsize - 1; - v1 = offset; + v0 = offset; + v1 = offset + gridsize - 1; v2 = offset + grid_vert_len - 1; v3 = offset + grid_vert_len - gridsize; |