From 8dcb05802b8f16e84169e4e3b64789707a939787 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 10 Dec 2016 17:07:28 -0500 Subject: ShaderManagers: Use aggregate initialization for some variables. These provide the same semantics, however aggregate initialization doesn't force the structs to be trivially copyable. memset, on the other hand, does. --- Source/Core/VideoCommon/VertexShaderManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp') diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index aa7ea1c2a6..c7331fe446 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -203,8 +203,8 @@ void VertexShaderManager::Init() bProjectionChanged = true; bViewportChanged = false; - memset(&xfmem, 0, sizeof(xfmem)); - memset(&constants, 0, sizeof(constants)); + xfmem = {}; + constants = {}; ResetView(); // TODO: should these go inside ResetView()? -- cgit v1.2.3