diff --git a/idd/LGIdd/CFrameBufferResource.cpp b/idd/LGIdd/CFrameBufferResource.cpp index 296e510c..8d9bcc04 100644 --- a/idd/LGIdd/CFrameBufferResource.cpp +++ b/idd/LGIdd/CFrameBufferResource.cpp @@ -127,8 +127,9 @@ void CFrameBufferResource::Reset() m_map = NULL; } - m_base = nullptr; - m_size = 0; + m_base = nullptr; + m_size = 0; + m_frameSize = 0; m_res.Reset(); - m_valid = false; + m_valid = false; } \ No newline at end of file diff --git a/idd/LGIdd/CFrameBufferResource.h b/idd/LGIdd/CFrameBufferResource.h index b7e2b4b8..234c2ef3 100644 --- a/idd/LGIdd/CFrameBufferResource.h +++ b/idd/LGIdd/CFrameBufferResource.h @@ -33,13 +33,13 @@ using namespace Microsoft::WRL; class CFrameBufferResource { private: - bool m_valid; - unsigned m_frameIndex; - uint8_t * m_base; - size_t m_size; - size_t m_frameSize; + bool m_valid = false; + unsigned m_frameIndex = 0; + uint8_t * m_base = nullptr; + size_t m_size = 0; + size_t m_frameSize = 0; ComPtr m_res; - void * m_map; + void * m_map = nullptr; public: bool Init(CSwapChainProcessor * swapChain, unsigned frameIndex, uint8_t * base, size_t size);