From d28c9ae354ef794fb34c1e5d8a6b876e2db9fe61 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 1 Dec 2015 22:00:38 +0100 Subject: [PATCH 1/2] VideoSW: Wipe output vertices They shall be overwritten afterwards. --- .../Core/VideoBackends/Software/NativeVertexFormat.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/VideoBackends/Software/NativeVertexFormat.h b/Source/Core/VideoBackends/Software/NativeVertexFormat.h index 400a7dabb0..83f771b26b 100644 --- a/Source/Core/VideoBackends/Software/NativeVertexFormat.h +++ b/Source/Core/VideoBackends/Software/NativeVertexFormat.h @@ -37,12 +37,12 @@ struct OutputVertexData ALP_C }; - Vec3 mvPosition; - Vec4 projectedPosition; - Vec3 screenPosition; - Vec3 normal[3]; - u8 color[2][4]; - Vec3 texCoords[8]; + Vec3 mvPosition = {}; + Vec4 projectedPosition = {}; + Vec3 screenPosition = {}; + Vec3 normal[3] = {}; + u8 color[2][4] = {}; + Vec3 texCoords[8] = {}; void Lerp(float t, OutputVertexData *a, OutputVertexData *b) { From f3b6afe1c518ac1a1a33bb5aa6a9afdf0b65287e Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 1 Dec 2015 22:04:19 +0100 Subject: [PATCH 2/2] ConfigManager: initialize m_revision FifoPlayer don't set it, and don't need it. But it's used... --- Source/Core/Core/ConfigManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp index f990f030cf..b733fd298f 100644 --- a/Source/Core/Core/ConfigManager.cpp +++ b/Source/Core/Core/ConfigManager.cpp @@ -633,6 +633,7 @@ void SConfig::LoadDefaults() m_strName = "NONE"; m_strUniqueID = "00000000"; + m_revision = 0; } static const char* GetRegionOfCountry(DiscIO::IVolume::ECountry country) {