mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
shader_recompiler: Make sure RuntimeInfo is zero initialized. (#1332)
This commit is contained in:
parent
09cbccb40b
commit
0a5f46942e
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ struct RuntimeInfo {
|
|||
ComputeRuntimeInfo cs_info;
|
||||
};
|
||||
|
||||
RuntimeInfo(Stage stage_) : stage{stage_} {}
|
||||
RuntimeInfo(Stage stage_) {
|
||||
memset(this, 0, sizeof(*this));
|
||||
stage = stage_;
|
||||
}
|
||||
|
||||
bool operator==(const RuntimeInfo& other) const noexcept {
|
||||
switch (stage) {
|
||||
|
|
Loading…
Add table
Reference in a new issue