Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_impl_mesh.c
| Show First 20 Lines • Show All 1,261 Lines • ▼ Show 20 Lines | if (cd_overlap == false) { | ||||
| } | } | ||||
| } | } | ||||
| /* We can't discard batches at this point as they have been | /* We can't discard batches at this point as they have been | ||||
| * referenced for drawing. Just clear them in place. */ | * referenced for drawing. Just clear them in place. */ | ||||
| for (int i = 0; i < cache->mat_len; i++) { | for (int i = 0; i < cache->mat_len; i++) { | ||||
| GPU_BATCH_CLEAR_SAFE(cache->surface_per_mat[i]); | GPU_BATCH_CLEAR_SAFE(cache->surface_per_mat[i]); | ||||
| } | } | ||||
| GPU_BATCH_CLEAR_SAFE(cache->batch.surface); | GPU_BATCH_CLEAR_SAFE(cache->batch.surface); | ||||
| GPU_INDEXBUF_DISCARD_SAFE(cache->final.ibo.tris); | |||||
| cache->batch_ready &= ~(MBC_SURFACE); | cache->batch_ready &= ~(MBC_SURFACE); | ||||
| mesh_cd_layers_type_merge(&cache->cd_used, cache->cd_needed); | mesh_cd_layers_type_merge(&cache->cd_used, cache->cd_needed); | ||||
| } | } | ||||
| mesh_cd_layers_type_merge(&cache->cd_used_over_time, cache->cd_needed); | mesh_cd_layers_type_merge(&cache->cd_used_over_time, cache->cd_needed); | ||||
| mesh_cd_layers_type_clear(&cache->cd_needed); | mesh_cd_layers_type_clear(&cache->cd_needed); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines | |||||