mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00: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:
parent
1fa61af413
commit
8dcb05802b
3 changed files with 4 additions and 4 deletions
|
@ -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()?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue