mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-10-29 22:45:34 +01:00
allow setting target fbo for imgui rendertask
This commit is contained in:
parent
9aa6618e0f
commit
2ee17a63ea
@ -27,7 +27,7 @@ void ImGuiRT::render(Services::OpenGLRenderer& rs, Engine&) {
|
|||||||
ZoneScopedN("MM::OpenGL::RenderTasks::ImGuiRT::render");
|
ZoneScopedN("MM::OpenGL::RenderTasks::ImGuiRT::render");
|
||||||
TracyGpuZone("MM::OpenGL::RenderTasks::ImGuiRT::render");
|
TracyGpuZone("MM::OpenGL::RenderTasks::ImGuiRT::render");
|
||||||
|
|
||||||
rs.targets["display"]->bind(FrameBufferObject::W);
|
rs.targets[target_fbo]->bind(FrameBufferObject::W);
|
||||||
|
|
||||||
// render
|
// render
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
|
@ -14,6 +14,9 @@ namespace MM::OpenGL::RenderTasks {
|
|||||||
const char* name(void) override { return "ImGuiRT"; }
|
const char* name(void) override { return "ImGuiRT"; }
|
||||||
|
|
||||||
void render(Services::OpenGLRenderer& rs, Engine& engine) override;
|
void render(Services::OpenGLRenderer& rs, Engine& engine) override;
|
||||||
|
|
||||||
|
public:
|
||||||
|
std::string target_fbo = "display";
|
||||||
};
|
};
|
||||||
|
|
||||||
} // MM::OpenGL::RenderTasks
|
} // MM::OpenGL::RenderTasks
|
||||||
|
Loading…
Reference in New Issue
Block a user