Skip to content

Commit c6b0bc4

Browse files
committed
Fix d3d11 RenderTarget dirtyFlags check
1 parent 15f1a48 commit c6b0bc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

axmol/rhi/d3d11/RenderTarget11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void RenderTargetImpl::beginRenderPass(ID3D11DeviceContext* context)
6363
_AXASSERT_HR(_device->CreateRenderTargetView(resource, nullptr, &_rtvs[0]));
6464
}
6565

66-
if (bitmask::any(_dirtyFlags, TargetBufferFlags::COLOR))
66+
if (bitmask::any(_dirtyFlags, TargetBufferFlags::DEPTH_AND_STENCIL))
6767
{
6868
SafeRelease(_dsv);
6969

0 commit comments

Comments
 (0)