File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4619,9 +4619,12 @@ void RenderingDeviceDriverD3D12::command_begin_render_pass(CommandBufferID p_cmd
46194619 tex_info->pending_clear .remove_from_list ();
46204620 }
46214621 } else if ((tex_info->desc .Flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL)) {
4622- if (pass_info->attachments [i].stencil_load_op == ATTACHMENT_LOAD_OP_CLEAR) {
4622+ if (pass_info->attachments [i].load_op == ATTACHMENT_LOAD_OP_CLEAR) {
46234623 clear.aspect .set_flag (TEXTURE_ASPECT_DEPTH_BIT);
46244624 }
4625+ if (pass_info->attachments [i].stencil_load_op == ATTACHMENT_LOAD_OP_CLEAR) {
4626+ clear.aspect .set_flag (TEXTURE_ASPECT_STENCIL_BIT);
4627+ }
46254628 }
46264629 if (!clear.aspect .is_empty ()) {
46274630 clear.value = p_attachment_clears[i];
You can’t perform that action at this time.
0 commit comments