diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 4079684cd35a..a4d238dc33bf 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -3096,7 +3096,7 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const { ImGui::SameLine(); ImGui::BeginChild("right", ImVec2(0.f, 0.0f)); - if (ImGui::CollapsingHeader("Texture", ImGuiTreeNodeFlags_DefaultOpen)) { + if (ImGui::CollapsingHeader("Texture", nullptr, ImGuiTreeNodeFlags_DefaultOpen)) { if (selectedTextureId) { auto iter = cache_.find(selectedTextureId); if (iter != cache_.end()) { @@ -3143,7 +3143,7 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const { } } - if (ImGui::CollapsingHeader("Texture Cache State"), ImGuiTreeNodeFlags_DefaultOpen) { + if (ImGui::CollapsingHeader("Texture Cache State", nullptr, ImGuiTreeNodeFlags_DefaultOpen) { ImGui::Text("Cache: %d textures, size est %d", (int)cache_.size(), cacheSizeEstimate_); if (!secondCache_.empty()) { ImGui::Text("Second: %d textures, size est %d", (int)secondCache_.size(), secondCacheSizeEstimate_); @@ -3168,5 +3168,6 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const { } } } + ImGui::EndChild(); } diff --git a/unittest/UnitTest.cpp b/unittest/UnitTest.cpp index 58e59aaf8d2e..45c664a29af8 100644 --- a/unittest/UnitTest.cpp +++ b/unittest/UnitTest.cpp @@ -1098,6 +1098,9 @@ bool TestBuffer() { return true; } +#if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER) +[[gnu::target("sse4.1")]] +#endif bool TestSIMD() { #if PPSSPP_ARCH(SSE2) __m128i x = _mm_set_epi16(0, 0x4444, 0, 0x3333, 0, 0x2222, 0, 0x1111);