mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-15 02:05:50 +00:00
Use capture mode directly : don't use local var
ie. replace bool backframe = IsBackgroundCapturing(m_State); if(backframe) with if(IsBackgroundCapturing(m_State))
This commit is contained in:
committed by
Baldur Karlsson
parent
8b8027ff89
commit
1816bb809b
@@ -86,15 +86,12 @@ void WrappedMTLBuffer::didModifyRange(NS::Range &range)
|
||||
SERIALISE_TIME_CALL(Unwrap(this)->didModifyRange(range));
|
||||
if(IsCaptureMode(m_State))
|
||||
{
|
||||
bool backframe = IsBackgroundCapturing(m_State);
|
||||
if(backframe)
|
||||
if(IsBackgroundCapturing(m_State))
|
||||
{
|
||||
// Snapshot potentially CPU modified buffer
|
||||
GetResourceManager()->MarkDirtyResource(m_ID);
|
||||
}
|
||||
|
||||
bool capframe = IsActiveCapturing(m_State);
|
||||
if(capframe)
|
||||
else
|
||||
{
|
||||
Chunk *chunk = NULL;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user