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/GeometryShaderManager.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/GeometryShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GeometryShaderManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderManager.cpp b/Source/Core/VideoCommon/GeometryShaderManager.cpp index 1bb841459d..8a687d70d0 100644 --- a/Source/Core/VideoCommon/GeometryShaderManager.cpp +++ b/Source/Core/VideoCommon/GeometryShaderManager.cpp @@ -21,7 +21,7 @@ static bool s_viewport_changed; void GeometryShaderManager::Init() { - memset(&constants, 0, sizeof(constants)); + constants = {}; // Init any intial constants which aren't zero when bpmem is zero. SetViewportChanged(); |
