Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-09-11 16:32:02 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-11 16:34:09 +0300
commiteaf993ad9472dcd22e005c4a1d4df8920a98aed4 (patch)
tree48402b847a90cf23f8a598b92cd1e6b17916b753 /source/blender/blenkernel/intern/pbvh_intern.h
parentcde66d791650dc69478eefba4d0e2f932732a8eb (diff)
Followup for previous PBVH commit
Didn't realize the index buffer is stored once in a BVH and same pointer is reused. Surprisingly, simple files were fixed with the previous fix. Now disabled the optimization all together, and it was simpler to just completely remove all residue of the code. It is likely to be a different implementation anyway, so no need to try to keep code in a semi-broken state.
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh_intern.h')
-rw-r--r--source/blender/blenkernel/intern/pbvh_intern.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h
index 4aef97bda47..ea8bd1933cd 100644
--- a/source/blender/blenkernel/intern/pbvh_intern.h
+++ b/source/blender/blenkernel/intern/pbvh_intern.h
@@ -144,11 +144,6 @@ struct PBVH {
const DMFlagMat *grid_flag_mats;
int totgrid;
BLI_bitmap **grid_hidden;
- /* index_buf of GPU_PBVH_Buffers can be the same for all 'fully drawn' nodes (same size).
- * Previously was stored in a static var in gpu_buffer.c, but this breaks in case we handle several different
- * objects in sculpt mode with different sizes at the same time, so now storing that common gpu buffer
- * in an opaque pointer per pbvh. See T47637. */
- struct GridCommonGPUBuffer *grid_common_gpu_buffer;
/* Only used during BVH build and update,
* don't need to remain valid after */