Overlay-Next: Fix Copy Uninitialized Texture
Overlay engine is currently responsible to initialize the framebuffers depth_in_front texture. This is a hack and hasn't been ported to Overlay-Next (yet). This PR skips copying the depth_in_front texture when it isn't initialized yet. Issue detected when working on Vulkan backend due its more strictness. Pull Request: https://projects.blender.org/blender/blender/pulls/113188
This commit is contained in:
@@ -295,7 +295,9 @@ void AntiAliasingPass::draw(Manager &manager,
|
||||
if (!DRW_state_is_scene_render()) {
|
||||
/* Copy back the saved depth buffer for correct overlays. */
|
||||
GPU_texture_copy(depth_tx, sample0_depth_tx_);
|
||||
GPU_texture_copy(depth_in_front_tx, sample0_depth_in_front_tx_);
|
||||
if (depth_in_front_tx) {
|
||||
GPU_texture_copy(depth_in_front_tx, sample0_depth_in_front_tx_);
|
||||
}
|
||||
}
|
||||
else if (last_sample) {
|
||||
GPU_texture_copy(depth_tx, sample0_depth_tx_);
|
||||
|
||||
Reference in New Issue
Block a user