Workbench: Fix: Performance Regressions #113251

Merged
Miguel Pozo merged 8 commits from pragma37/blender:pull-workbench-opti-cleanup into blender-v4.0-release 2023-10-06 15:31:53 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 8e4836fef3 - Show all commits

View File

@ -612,9 +612,11 @@ static bool workbench_render_framebuffers_init()
"txl.color", size.x, size.y, 1, GPU_RGBA16F, usage, nullptr);
dtxl->depth = GPU_texture_create_2d(
"txl.depth", size.x, size.y, 1, GPU_DEPTH24_STENCIL8, usage, nullptr);
dtxl->depth_in_front = GPU_texture_create_2d(
"txl.depth_in_front", size.x, size.y, 1, GPU_DEPTH24_STENCIL8, usage, nullptr);
}
if (!(dtxl->depth && dtxl->color)) {
if (!(dtxl->depth && dtxl->color && dtxl->depth_in_front)) {
return false;
}