mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #4509 from lioncash/assign
ShaderManagers: Use aggregate initialization for some variables.
This commit is contained in:
@ -21,7 +21,7 @@ static bool s_viewport_changed;
|
|||||||
|
|
||||||
void GeometryShaderManager::Init()
|
void GeometryShaderManager::Init()
|
||||||
{
|
{
|
||||||
memset(&constants, 0, sizeof(constants));
|
constants = {};
|
||||||
|
|
||||||
// Init any intial constants which aren't zero when bpmem is zero.
|
// Init any intial constants which aren't zero when bpmem is zero.
|
||||||
SetViewportChanged();
|
SetViewportChanged();
|
||||||
|
@ -21,7 +21,7 @@ bool PixelShaderManager::dirty;
|
|||||||
|
|
||||||
void PixelShaderManager::Init()
|
void PixelShaderManager::Init()
|
||||||
{
|
{
|
||||||
memset(&constants, 0, sizeof(constants));
|
constants = {};
|
||||||
|
|
||||||
// Init any intial constants which aren't zero when bpmem is zero.
|
// Init any intial constants which aren't zero when bpmem is zero.
|
||||||
s_bFogRangeAdjustChanged = true;
|
s_bFogRangeAdjustChanged = true;
|
||||||
|
@ -203,8 +203,8 @@ void VertexShaderManager::Init()
|
|||||||
bProjectionChanged = true;
|
bProjectionChanged = true;
|
||||||
bViewportChanged = false;
|
bViewportChanged = false;
|
||||||
|
|
||||||
memset(&xfmem, 0, sizeof(xfmem));
|
xfmem = {};
|
||||||
memset(&constants, 0, sizeof(constants));
|
constants = {};
|
||||||
ResetView();
|
ResetView();
|
||||||
|
|
||||||
// TODO: should these go inside ResetView()?
|
// TODO: should these go inside ResetView()?
|
||||||
|
Reference in New Issue
Block a user