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/PixelShaderManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp') diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 0560ecc60a..f029751363 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -21,7 +21,7 @@ bool PixelShaderManager::dirty; void PixelShaderManager::Init() { - memset(&constants, 0, sizeof(constants)); + constants = {}; // Init any intial constants which aren't zero when bpmem is zero. s_bFogRangeAdjustChanged = true; -- cgit v1.2.3