mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-09-26 11:06:25 -05:00
Vulkan: Fix imgui leaking viewport/scissor state into game rendering
This commit is contained in:
@@ -2069,6 +2069,10 @@ void VulkanRenderer::ImguiEnd()
|
||||
ImGui::Render();
|
||||
ImGui_ImplVulkan_RenderDrawData(ImGui::GetDrawData(), m_state.currentCommandBuffer);
|
||||
vkCmdEndRenderPass(m_state.currentCommandBuffer);
|
||||
|
||||
// restore viewport and scissor box
|
||||
vkCmdSetViewport(m_state.currentCommandBuffer, 0, 1, &m_state.currentViewport);
|
||||
vkCmdSetScissor(m_state.currentCommandBuffer, 0, 1, &m_state.currentScissorRect);
|
||||
}
|
||||
|
||||
ImTextureID VulkanRenderer::GenerateTexture(const std::vector<uint8>& data, const Vector2i& size)
|
||||
|
||||
Reference in New Issue
Block a user