diff --git a/qrenderdoc/Windows/APIInspector.h b/qrenderdoc/Windows/APIInspector.h index f0a627499..80ddd2b24 100644 --- a/qrenderdoc/Windows/APIInspector.h +++ b/qrenderdoc/Windows/APIInspector.h @@ -57,7 +57,7 @@ private: Ui::APIInspector *ui; ICaptureContext &m_Ctx; - uint32_t m_EventID; + uint32_t m_EventID = 0; void addCallstack(rdcarray calls); void fillAPIView(); diff --git a/qrenderdoc/Windows/TextureViewer.h b/qrenderdoc/Windows/TextureViewer.h index d21fe8d11..0a7384316 100644 --- a/qrenderdoc/Windows/TextureViewer.h +++ b/qrenderdoc/Windows/TextureViewer.h @@ -294,9 +294,9 @@ private: QSizeF m_PrevSize; - PixelValue m_CurRealValue; - PixelValue m_CurPixelValue; - PixelValue m_CurHoverValue; + PixelValue m_CurRealValue = {}; + PixelValue m_CurPixelValue = {}; + PixelValue m_CurHoverValue = {}; QColor backCol; diff --git a/renderdoc/api/replay/control_types.h b/renderdoc/api/replay/control_types.h index ab3072bd3..de873f5a5 100644 --- a/renderdoc/api/replay/control_types.h +++ b/renderdoc/api/replay/control_types.h @@ -321,13 +321,13 @@ in-place, so it would be slice 0: sample 0, slice 0: sample 1, slice 1: sample 0 This then follows the mapping for array slices as with any other array texture. :data:`sampleIndex` is ignored. )"); - bool mapToArray; + bool mapToArray = false; DOCUMENT(R"( If :data:`mapToArray` is ``False`` this selects which sample should be extracted to treat as a normal 2D image. If set to :data:`ResolveSamples` then instead there's a default average resolve. )"); - uint32_t sampleIndex; + uint32_t sampleIndex = ~0U; static const uint32_t ResolveSamples = ~0U; };