From 27c49d5272dfd072f664bd4663156e702b9a85fe Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Nov 2018 18:53:00 +0000 Subject: [PATCH] Tweak code that was confusing gcc --- renderdoc/core/core.cpp | 2 +- renderdoc/core/image_viewer.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/renderdoc/core/core.cpp b/renderdoc/core/core.cpp index baa22f5b4..269d1911e 100644 --- a/renderdoc/core/core.cpp +++ b/renderdoc/core/core.cpp @@ -1061,7 +1061,7 @@ map RenderDoc::GetRemoteDrivers() DriverInformation RenderDoc::GetDriverInformation(GraphicsAPI api) { - DriverInformation ret = {GPUVendor::Unknown, ""}; + DriverInformation ret = {}; RDCDriver driverType = RDCDriver::Unknown; switch(api) diff --git a/renderdoc/core/image_viewer.cpp b/renderdoc/core/image_viewer.cpp index 81b89b680..76c43d67f 100644 --- a/renderdoc/core/image_viewer.cpp +++ b/renderdoc/core/image_viewer.cpp @@ -170,7 +170,11 @@ public: return ret; } void SavePipelineState() {} - DriverInformation GetDriverInfo() { return {GPUVendor::Unknown, ""}; } + DriverInformation GetDriverInfo() + { + DriverInformation ret = {}; + return ret; + } const D3D12Pipe::State *GetD3D12PipelineState() { return NULL; } const GLPipe::State *GetGLPipelineState() { return NULL; } const VKPipe::State *GetVulkanPipelineState() { return NULL; }