mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 18:31:40 +00:00
[Coverity] Fix some uninitialised values
This commit is contained in:
@@ -1943,7 +1943,7 @@ vector<DebugMessage> ReplayProxy::GetDebugMessages()
|
||||
|
||||
FetchTexture ReplayProxy::GetTexture(ResourceId id)
|
||||
{
|
||||
FetchTexture ret;
|
||||
FetchTexture ret = {};
|
||||
|
||||
m_ToReplaySerialiser->Serialise("", id);
|
||||
|
||||
@@ -1983,7 +1983,7 @@ vector<ResourceId> ReplayProxy::GetBuffers()
|
||||
|
||||
FetchBuffer ReplayProxy::GetBuffer(ResourceId id)
|
||||
{
|
||||
FetchBuffer ret;
|
||||
FetchBuffer ret = {};
|
||||
|
||||
m_ToReplaySerialiser->Serialise("", id);
|
||||
|
||||
@@ -2373,7 +2373,7 @@ void ReplayProxy::InitPostVSBuffers(const vector<uint32_t> &events)
|
||||
|
||||
MeshFormat ReplayProxy::GetPostVSBuffers(uint32_t eventID, uint32_t instID, MeshDataStage stage)
|
||||
{
|
||||
MeshFormat ret;
|
||||
MeshFormat ret = {};
|
||||
|
||||
m_ToReplaySerialiser->Serialise("", eventID);
|
||||
m_ToReplaySerialiser->Serialise("", instID);
|
||||
|
||||
@@ -112,6 +112,8 @@ public:
|
||||
m_ToReplaySerialiser = NULL;
|
||||
m_FromReplaySerialiser = new Serialiser(NULL, Serialiser::WRITING, false);
|
||||
m_RemoteHasResolver = false;
|
||||
|
||||
RDCEraseEl(m_APIProps);
|
||||
}
|
||||
|
||||
virtual ~ReplayProxy();
|
||||
|
||||
@@ -376,6 +376,8 @@ public:
|
||||
PacketType type;
|
||||
vector<byte> payload;
|
||||
|
||||
m_PID = 0;
|
||||
|
||||
{
|
||||
Serialiser ser("", Serialiser::WRITING, false);
|
||||
|
||||
@@ -392,8 +394,6 @@ public:
|
||||
Serialiser *ser = NULL;
|
||||
GetPacket(type, ser);
|
||||
|
||||
m_PID = 0;
|
||||
|
||||
// failed handshaking
|
||||
if(m_Socket == NULL || ser == NULL)
|
||||
return;
|
||||
|
||||
@@ -93,6 +93,8 @@ D3D11DebugManager::D3D11DebugManager(WrappedID3D11Device *wrapper)
|
||||
m_supersamplingX = 1.0f;
|
||||
m_supersamplingY = 1.0f;
|
||||
|
||||
m_width = m_height = 1;
|
||||
|
||||
m_WrappedDevice = wrapper;
|
||||
ID3D11DeviceContext *ctx = NULL;
|
||||
m_WrappedDevice->GetImmediateContext(&ctx);
|
||||
|
||||
Reference in New Issue
Block a user