shader_recompiler: Make sure RuntimeInfo is zero initialized. (#1332)

This commit is contained in:
squidbus 2024-10-10 10:32:13 -07:00 committed by GitHub
parent 09cbccb40b
commit 0a5f46942e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {