mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Coverity: Fix newly added defects
This commit is contained in:
@@ -189,7 +189,7 @@ public:
|
||||
void RegisterShutdownFunction(ShutdownFunction func) { m_ShutdownFunctions.insert(func); }
|
||||
void SetReplayApp(bool replay) { m_Replay = replay; }
|
||||
bool IsReplayApp() const { return m_Replay; }
|
||||
string GetConfigSetting(string name) { return m_ConfigSettings[name]; }
|
||||
const string &GetConfigSetting(string name) { return m_ConfigSettings[name]; }
|
||||
void SetConfigSetting(string name, string value) { m_ConfigSettings[name] = value; }
|
||||
void BecomeReplayHost(volatile uint32_t &killReplay);
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ struct DummyID3D11InfoQueue : public ID3D11InfoQueue
|
||||
{
|
||||
WrappedID3D11Device *m_pDevice;
|
||||
|
||||
DummyID3D11InfoQueue() {}
|
||||
DummyID3D11InfoQueue() : m_pDevice(NULL) {}
|
||||
//////////////////////////////
|
||||
// implement IUnknown
|
||||
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { return E_NOINTERFACE; }
|
||||
@@ -232,7 +232,8 @@ struct DummyID3D11Debug : public ID3D11Debug
|
||||
{
|
||||
WrappedID3D11Device *m_pDevice;
|
||||
|
||||
DummyID3D11Debug() {}
|
||||
DummyID3D11Debug() : m_pDevice(NULL) {}
|
||||
|
||||
//////////////////////////////
|
||||
// implement IUnknown
|
||||
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { return E_NOINTERFACE; }
|
||||
|
||||
@@ -66,7 +66,7 @@ void VulkanDebugManager::GPUBuffer::Create(WrappedVulkan *driver, VkDevice dev,
|
||||
VkResult vkr = driver->vkCreateBuffer(dev, &bufInfo, NULL, &buf);
|
||||
RDCASSERTEQUAL(vkr, VK_SUCCESS);
|
||||
|
||||
VkMemoryRequirements mrq;
|
||||
VkMemoryRequirements mrq = {};
|
||||
driver->vkGetBufferMemoryRequirements(dev, buf, &mrq);
|
||||
|
||||
VkMemoryAllocateInfo allocInfo = {
|
||||
|
||||
Reference in New Issue
Block a user