mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user