diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-12-10 17:07:28 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-12-10 17:33:51 -0500 |
| commit | 8dcb05802b8f16e84169e4e3b64789707a939787 (patch) | |
| tree | 91ebe66b3f6b4301c1b97c0173adbfb8b522851e /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 1fa61af41329652ee92030825f9347d3d3f7ce93 (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.cpp | 2 |
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; |
