Merge pull request #4509 from lioncash/assign

ShaderManagers: Use aggregate initialization for some variables.
This commit is contained in:
Markus Wick 2016-12-11 13:53:28 +01:00 committed by GitHub
commit 863aeb383a
3 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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()?