mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
[Coverity] Initialise some uninitialised values
This commit is contained in:
@@ -274,10 +274,10 @@ private:
|
||||
|
||||
ID3D12RootSignature *m_HistogramRootSig = NULL;
|
||||
// one per texture type, one per int/uint/float
|
||||
ID3D12PipelineState *m_TileMinMaxPipe[10][3];
|
||||
ID3D12PipelineState *m_HistogramPipe[10][3];
|
||||
ID3D12PipelineState *m_TileMinMaxPipe[10][3] = {};
|
||||
ID3D12PipelineState *m_HistogramPipe[10][3] = {};
|
||||
// one per int/uint/float
|
||||
ID3D12PipelineState *m_ResultMinMaxPipe[3];
|
||||
ID3D12PipelineState *m_ResultMinMaxPipe[3] = {};
|
||||
ID3D12Resource *m_MinMaxResultBuffer = NULL;
|
||||
ID3D12Resource *m_MinMaxTileBuffer = NULL;
|
||||
|
||||
@@ -387,9 +387,9 @@ private:
|
||||
map<uint64_t, MeshDisplayPipelines> m_CachedMeshPipelines;
|
||||
|
||||
static const uint32_t m_MaxMeshPicks = 500;
|
||||
ID3D12Resource *m_PickVB;
|
||||
uint32_t m_PickSize;
|
||||
ID3D12Resource *m_PickResultBuf;
|
||||
ID3D12Resource *m_PickVB = NULL;
|
||||
uint32_t m_PickSize = 0;
|
||||
ID3D12Resource *m_PickResultBuf = NULL;
|
||||
|
||||
uint64_t m_SOBufferSize = 128;
|
||||
ID3D12Resource *m_SOBuffer = NULL;
|
||||
@@ -400,22 +400,22 @@ private:
|
||||
map<uint32_t, D3D12PostVSData> m_PostVSData;
|
||||
map<uint32_t, uint32_t> m_PostVSAlias;
|
||||
|
||||
ID3D12Resource *m_CustomShaderTex;
|
||||
ID3D12Resource *m_CustomShaderTex = NULL;
|
||||
ResourceId m_CustomShaderResourceId;
|
||||
|
||||
HighlightCache m_HighlightCache;
|
||||
|
||||
int m_width, m_height;
|
||||
int m_width = 1, m_height = 1;
|
||||
|
||||
uint64_t m_OutputWindowID;
|
||||
uint64_t m_DSVID;
|
||||
uint64_t m_CurrentOutputWindow;
|
||||
uint64_t m_OutputWindowID = 0;
|
||||
uint64_t m_DSVID = 0;
|
||||
uint64_t m_CurrentOutputWindow = 0;
|
||||
map<uint64_t, OutputWindow> m_OutputWindows;
|
||||
|
||||
WrappedID3D12Device *m_WrappedDevice;
|
||||
ID3D12Device *m_Device;
|
||||
WrappedID3D12Device *m_WrappedDevice = NULL;
|
||||
ID3D12Device *m_Device = NULL;
|
||||
|
||||
IDXGIFactory4 *m_pFactory;
|
||||
IDXGIFactory4 *m_pFactory = NULL;
|
||||
|
||||
D3D12ResourceManager *m_ResourceManager;
|
||||
D3D12ResourceManager *m_ResourceManager = NULL;
|
||||
};
|
||||
|
||||
@@ -29,7 +29,12 @@
|
||||
|
||||
struct ProgramUniformValue
|
||||
{
|
||||
ProgramUniformValue() { RDCEraseEl(data); }
|
||||
ProgramUniformValue()
|
||||
{
|
||||
Type = eGL_NONE;
|
||||
Location = 0;
|
||||
RDCEraseEl(data);
|
||||
}
|
||||
GLenum Type;
|
||||
int32_t Location;
|
||||
|
||||
@@ -47,7 +52,7 @@ DECLARE_REFLECTION_STRUCT(ProgramUniformValue);
|
||||
struct ProgramUniform
|
||||
{
|
||||
std::string Basename;
|
||||
bool IsArray;
|
||||
bool IsArray = false;
|
||||
|
||||
std::vector<ProgramUniformValue> Values;
|
||||
};
|
||||
|
||||
@@ -393,7 +393,7 @@ Socket *CreateClientSocket(const char *host, uint16_t port, int timeoutMS)
|
||||
int result = connect(s, ptr->ai_addr, (int)ptr->ai_addrlen);
|
||||
if(result == SOCKET_ERROR)
|
||||
{
|
||||
fd_set setW, setE;
|
||||
fd_set setW = {}, setE = {};
|
||||
FD_ZERO(&setW);
|
||||
FD_ZERO(&setE);
|
||||
|
||||
|
||||
@@ -590,6 +590,8 @@ Thumbnail CaptureFile::GetThumbnail(FileType type, uint32_t maxsize)
|
||||
{
|
||||
RDCERR("Unsupported file type %d in thumbnail fetch", type);
|
||||
free(thumbpixels);
|
||||
ret.width = 0;
|
||||
ret.height = 0;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user