mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-26 04:37:50 -05:00
Renderer: Use imgui for drawing debug text and OSD
This commit is contained in:
@@ -1424,9 +1424,6 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& xfb_region
|
||||
|
||||
ResetAPIState();
|
||||
|
||||
// Do our OSD callbacks
|
||||
OSD::DoCallbacks(OSD::CallbackType::OnFrame);
|
||||
|
||||
// Check if we need to render to a new surface.
|
||||
CheckForSurfaceChange();
|
||||
CheckForSurfaceResize();
|
||||
@@ -1451,10 +1448,6 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& xfb_region
|
||||
|
||||
// Render OSD messages.
|
||||
glViewport(0, 0, m_backbuffer_width, m_backbuffer_height);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
DrawDebugText();
|
||||
OSD::DrawMessages();
|
||||
DrawImGui();
|
||||
|
||||
// Swap the back and front buffers, presenting the image.
|
||||
|
||||
Reference in New Issue
Block a user