summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderManager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-12-10 17:07:28 -0500
committerLioncash <mathew1800@gmail.com>2016-12-10 17:33:51 -0500
commit8dcb05802b8f16e84169e4e3b64789707a939787 (patch)
tree91ebe66b3f6b4301c1b97c0173adbfb8b522851e /Source/Core/VideoCommon/PixelShaderManager.cpp
parent1fa61af41329652ee92030825f9347d3d3f7ce93 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderManager.cpp2
1 files changed, 1 insertions, 1 deletions
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;