Workbench: Fix: Performance Regressions #113251
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue