diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-04-27 17:46:17 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-04-27 17:46:17 +0300 |
commit | 4119e9c60b94a9ce1f00860db3f2cbd62c55cf4f (patch) | |
tree | dc5325356d4fdc5e3e2d1f13156683b96bef3286 /source/blender/draw/intern | |
parent | 6842958c9b8f0502148443534a7b38faa0efcd9d (diff) | |
parent | 4fd005fefb014a8570747b1d043de7d610078b46 (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_cache_extract_mesh.c | 1 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c index 4c51ed99f2c..40687306b4e 100644 --- a/source/blender/draw/intern/draw_cache_extract_mesh.c +++ b/source/blender/draw/intern/draw_cache_extract_mesh.c @@ -4540,6 +4540,7 @@ static void extract_task_create(TaskPool *task_pool, void *buf, int32_t *task_counter) { + BLI_assert(scene != NULL); const bool do_hq_normals = (scene->r.perf_flag & SCE_PERF_HQ_NORMALS) != 0; if (do_hq_normals && (extract == &extract_lnor)) { extract = &extract_lnor_hq; diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 51222d833c2..7bc3dcfab81 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2430,7 +2430,7 @@ static void draw_world_clip_planes_from_rv3d(GPUBatch *batch, const float world_ /** * Clears the Depth Buffer and draws only the specified object. */ -void DRW_draw_depth_object(ARegion *region, View3D *v3d, GPUViewport *viewport, Object *object) +void DRW_draw_depth_object(Scene *scene, ARegion *region, View3D *v3d, GPUViewport *viewport, Object *object) { RegionView3D *rv3d = region->regiondata; @@ -2468,7 +2468,7 @@ void DRW_draw_depth_object(ARegion *region, View3D *v3d, GPUViewport *viewport, batch = DRW_mesh_batch_cache_get_surface(me); } - DRW_mesh_batch_cache_create_requested(object, me, NULL, false, true); + DRW_mesh_batch_cache_create_requested(object, me, scene, false, true); const eGPUShaderConfig sh_cfg = world_clip_planes ? GPU_SHADER_CFG_CLIPPED : GPU_SHADER_CFG_DEFAULT; |