Fix T72152 DRW_debug_sphere Not Working After Overlay Refactor
This commit is contained in:
parent
2359979141
commit
60c6a74ce1
Notes:
blender-bot
2023-02-14 11:42:40 +01:00
Referenced by issue #72152, DRW_debug_sphere Not Working After Overlay Refactor
|
@ -210,6 +210,10 @@ static void drw_debug_draw_spheres(void)
|
|||
GPU_batch_instbuf_set(draw_batch, inst_vbo, true);
|
||||
GPU_batch_program_set_builtin(draw_batch, GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE);
|
||||
|
||||
float persmat[4][4];
|
||||
DRW_view_persmat_get(NULL, persmat, false);
|
||||
GPU_batch_uniform_mat4(draw_batch, "ViewProjectionMatrix", persmat);
|
||||
|
||||
GPU_batch_draw(draw_batch);
|
||||
GPU_batch_discard(draw_batch);
|
||||
}
|
||||
|
|
|
@ -1606,6 +1606,8 @@ void DRW_draw_render_loop_ex(struct Depsgraph *depsgraph,
|
|||
drw_draw_background_alpha_under();
|
||||
}
|
||||
|
||||
drw_debug_draw();
|
||||
|
||||
/* Fix 3D view being "laggy" on macos and win+nvidia. (See T56996, T61474) */
|
||||
GPU_flush();
|
||||
|
||||
|
@ -1630,8 +1632,6 @@ void DRW_draw_render_loop_ex(struct Depsgraph *depsgraph,
|
|||
DRW_state_reset();
|
||||
}
|
||||
|
||||
drw_debug_draw();
|
||||
|
||||
GPU_depth_test(false);
|
||||
drw_engines_draw_text();
|
||||
GPU_depth_test(true);
|
||||
|
|
Loading…
Reference in New Issue