mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 02:55:46 -04:00
Frontend: Prevent drawing imgui into the vram texture
This commit is contained in:
@ -139,9 +139,9 @@ void GPU::ResetGraphicsAPIState() {}
|
||||
|
||||
void GPU::RestoreGraphicsAPIState() {}
|
||||
|
||||
void GPU::RenderStatistics() {}
|
||||
void GPU::DrawStatistics() {}
|
||||
|
||||
void GPU::RenderDebugMenu()
|
||||
void GPU::DrawDebugMenu()
|
||||
{
|
||||
ImGui::MenuItem("Show VRAM", nullptr, &m_debug_options.show_vram);
|
||||
ImGui::MenuItem("Dump CPU to VRAM Copies", nullptr, &m_debug_options.dump_cpu_to_vram_copies);
|
||||
|
@ -40,10 +40,10 @@ public:
|
||||
virtual void RestoreGraphicsAPIState();
|
||||
|
||||
// Render statistics debug window.
|
||||
virtual void RenderStatistics();
|
||||
virtual void DrawStatistics();
|
||||
|
||||
// Manipulating debug options.
|
||||
virtual void RenderDebugMenu();
|
||||
virtual void DrawDebugMenu();
|
||||
|
||||
// Called when settings change.
|
||||
virtual void UpdateSettings();
|
||||
|
@ -68,9 +68,9 @@ void GPU_HW_OpenGL::RestoreGraphicsAPIState()
|
||||
glBindVertexArray(m_vao_id);
|
||||
}
|
||||
|
||||
void GPU_HW_OpenGL::RenderStatistics()
|
||||
void GPU_HW_OpenGL::DrawStatistics()
|
||||
{
|
||||
GPU_HW::RenderStatistics();
|
||||
GPU_HW::DrawStatistics();
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(300.0f, 130.0f), ImGuiCond_Once);
|
||||
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
void ResetGraphicsAPIState() override;
|
||||
void RestoreGraphicsAPIState() override;
|
||||
|
||||
void RenderStatistics() override;
|
||||
void DrawStatistics() override;
|
||||
void UpdateSettings() override;
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user