summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-01-28 23:33:01 +1300
committerScott Mansell <phiren@gmail.com>2023-01-31 19:41:24 +1300
commitb007b8e104fbf57bc5d92bc94ca7eb997edc6332 (patch)
tree1361feb81db38314e6adff290055718173ef7db9 /Source/Core/VideoCommon/ShaderCache.cpp
parent18c799f0b6291df2a994489ebcd34d3dfa290ff3 (diff)
Replace BeginUI/EndUI
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index b9876dc533..1e46f3527b 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/Source/Core/VideoCommon/ShaderCache.cpp
@@ -163,8 +163,6 @@ void ShaderCache::WaitForAsyncCompiler()
bool running = true;
constexpr auto update_ui_progress = [](size_t completed, size_t total) {
- g_presenter->BeginUIFrame();
-
const float center_x = ImGui::GetIO().DisplaySize.x * 0.5f;
const float center_y = ImGui::GetIO().DisplaySize.y * 0.5f;
const float scale = ImGui::GetIO().DisplayFramebufferScale.x;
@@ -184,7 +182,7 @@ void ShaderCache::WaitForAsyncCompiler()
}
ImGui::End();
- g_presenter->EndUIFrame();
+ g_presenter->Present();
};
while (running &&
@@ -195,9 +193,8 @@ void ShaderCache::WaitForAsyncCompiler()
m_async_shader_compiler->RetrieveWorkItems();
}
- // Just render nothing to clear the screen
- g_presenter->BeginUIFrame();
- g_presenter->EndUIFrame();
+ // An extra Present to clear the screen
+ g_presenter->Present();
}
template <typename SerializedUidType, typename UidType>