Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Show First 20 Lines • Show All 1,467 Lines • ▼ Show 20 Lines | if (G.debug_value > 20 && G.debug_value < 30) { | ||||
| GPU_depth_test(GPU_DEPTH_NONE); | GPU_depth_test(GPU_DEPTH_NONE); | ||||
| /* local coordinate visible rect inside region, to accommodate overlapping ui */ | /* local coordinate visible rect inside region, to accommodate overlapping ui */ | ||||
| const rcti *rect = ED_region_visible_rect(DST.draw_ctx.region); | const rcti *rect = ED_region_visible_rect(DST.draw_ctx.region); | ||||
| DRW_stats_draw(rect); | DRW_stats_draw(rect); | ||||
| } | } | ||||
| GPU_depth_test(GPU_DEPTH_LESS_EQUAL); | GPU_depth_test(GPU_DEPTH_LESS_EQUAL); | ||||
| } | } | ||||
| else { | |||||
| if (v3d && ((v3d->flag2 & V3D_SHOW_ANNOTATION) != 0)) { | |||||
| GPU_depth_test(GPU_DEPTH_NONE); | |||||
| /* XXX: as scene->gpd is not copied for COW yet */ | |||||
| ED_annotation_draw_view3d(DEG_get_input_scene(depsgraph), depsgraph, v3d, region, true); | |||||
| GPU_depth_test(GPU_DEPTH_LESS_EQUAL); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| struct DRWTextStore *DRW_text_cache_ensure(void) | struct DRWTextStore *DRW_text_cache_ensure(void) | ||||
| { | { | ||||
| BLI_assert(DST.text_store_p); | BLI_assert(DST.text_store_p); | ||||
| if (*DST.text_store_p == NULL) { | if (*DST.text_store_p == NULL) { | ||||
| *DST.text_store_p = DRW_text_cache_create(); | *DST.text_store_p = DRW_text_cache_create(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,736 Lines • Show Last 20 Lines | |||||