mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove memset of struct that's no longer POD
This commit is contained in:
@@ -1300,8 +1300,8 @@ void CaptureContext::CloseCapture()
|
||||
|
||||
m_CaptureFile = QString();
|
||||
|
||||
memset(&m_APIProps, 0, sizeof(m_APIProps));
|
||||
memset(&m_FrameInfo, 0, sizeof(m_FrameInfo));
|
||||
m_APIProps = APIProperties();
|
||||
m_FrameInfo = FrameDescription();
|
||||
m_Buffers.clear();
|
||||
m_BufferList.clear();
|
||||
m_Textures.clear();
|
||||
|
||||
@@ -2164,7 +2164,6 @@ void WrappedID3D12Device::StartFrameCapture(void *dev, void *wnd)
|
||||
FrameDescription frame;
|
||||
frame.frameNumber = ~0U;
|
||||
frame.captureTime = Timing::GetUnixTimestamp();
|
||||
RDCEraseEl(frame.stats);
|
||||
m_CapturedFrames.push_back(frame);
|
||||
|
||||
GetDebugMessages();
|
||||
|
||||
@@ -2194,7 +2194,6 @@ void WrappedOpenGL::StartFrameCapture(void *dev, void *wnd)
|
||||
FrameDescription frame;
|
||||
frame.frameNumber = m_AppControlledCapture ? ~0U : m_FrameCounter;
|
||||
frame.captureTime = Timing::GetUnixTimestamp();
|
||||
RDCEraseEl(frame.stats);
|
||||
m_CapturedFrames.push_back(frame);
|
||||
|
||||
GetResourceManager()->ClearReferencedResources();
|
||||
|
||||
@@ -1600,7 +1600,6 @@ void WrappedVulkan::StartFrameCapture(void *dev, void *wnd)
|
||||
FrameDescription frame;
|
||||
frame.frameNumber = ~0U;
|
||||
frame.captureTime = Timing::GetUnixTimestamp();
|
||||
RDCEraseEl(frame.stats);
|
||||
m_CapturedFrames.push_back(frame);
|
||||
|
||||
GetResourceManager()->ClearReferencedResources();
|
||||
|
||||
Reference in New Issue
Block a user