Fix T55078: Assert statement

This commit is contained in:
Jeroen Bakker 2018-05-15 16:18:30 +02:00
parent bcf6cc1f6b
commit 10fe8ec68f
Notes: blender-bot 2023-02-14 06:00:50 +01:00
Referenced by issue #55078, Crash when using bone selection overlay
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ static void POSE_draw_scene(void *vedata)
if(bone_selection_overlay) {
GPU_framebuffer_bind(dfbl->default_fb);
DRW_draw_pass(psl->bone_selection);
GPU_framebuffer_bind(dfbl->depth_only_fb);
GPU_framebuffer_clear_depth(dfbl->depth_only_fb, 1.0);
GPU_framebuffer_bind(dfbl->default_fb);
}