shader_recompiler: Make sure RuntimeInfo is zero initialized.

This commit is contained in:
squidbus 2024-10-10 10:27:19 -07:00
parent 09cbccb40b
commit d5cd539609

View File

@ -153,7 +153,10 @@ struct RuntimeInfo {
ComputeRuntimeInfo cs_info; 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 { bool operator==(const RuntimeInfo& other) const noexcept {
switch (stage) { switch (stage) {