From dd79d33f147410a91e47bc2c0e4a876ef79c3589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 9 Aug 2020 21:44:58 +0200 Subject: [PATCH] Minor: Initialize a struct. Decrease logging in sceMt19937. --- Core/HLE/sceMt19937.cpp | 3 +-- ext/native/thin3d/VulkanQueueRunner.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceMt19937.cpp b/Core/HLE/sceMt19937.cpp index a402bb5757..ba7aa28166 100644 --- a/Core/HLE/sceMt19937.cpp +++ b/Core/HLE/sceMt19937.cpp @@ -28,7 +28,7 @@ static u32 sceMt19937Init(u32 mt19937Addr, u32 seed) { - WARN_LOG(HLE, "sceMt19937Init(%08x, %08x)", mt19937Addr, seed); + INFO_LOG(HLE, "sceMt19937Init(%08x, %08x)", mt19937Addr, seed); if (!Memory::IsValidAddress(mt19937Addr)) return -1; void *ptr = Memory::GetPointer(mt19937Addr); @@ -40,7 +40,6 @@ static u32 sceMt19937Init(u32 mt19937Addr, u32 seed) static u32 sceMt19937UInt(u32 mt19937Addr) { - WARN_LOG(HLE, "sceMt19937UInt(%08x)", mt19937Addr); if (!Memory::IsValidAddress(mt19937Addr)) return -1; MersenneTwister *mt = (MersenneTwister *)Memory::GetPointer(mt19937Addr); diff --git a/ext/native/thin3d/VulkanQueueRunner.cpp b/ext/native/thin3d/VulkanQueueRunner.cpp index f7825947db..dbd2e02d0e 100644 --- a/ext/native/thin3d/VulkanQueueRunner.cpp +++ b/ext/native/thin3d/VulkanQueueRunner.cpp @@ -1179,7 +1179,7 @@ void VulkanQueueRunner::PerformRenderPass(const VKRStep &step, VkCommandBuffer c rc.layerCount = 1; rc.rect.extent.width = (uint32_t)curWidth; rc.rect.extent.height = (uint32_t)curHeight; - VkClearAttachment attachments[2]; + VkClearAttachment attachments[2]{}; if (c.clear.clearMask & VK_IMAGE_ASPECT_COLOR_BIT) { VkClearAttachment &attachment = attachments[numAttachments++]; attachment.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;