mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-12-04 19:23:28 +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");
|
||||
TracyGpuZone("MM::OpenGL::RenderTasks::ImGuiRT::render");
|
||||
|
||||
rs.targets["display"]->bind(FrameBufferObject::W);
|
||||
rs.targets[target_fbo]->bind(FrameBufferObject::W);
|
||||
|
||||
// render
|
||||
ImGui::Render();
|
||||
|
@ -14,6 +14,9 @@ namespace MM::OpenGL::RenderTasks {
|
||||
const char* name(void) override { return "ImGuiRT"; }
|
||||
|
||||
void render(Services::OpenGLRenderer& rs, Engine& engine) override;
|
||||
|
||||
public:
|
||||
std::string target_fbo = "display";
|
||||
};
|
||||
|
||||
} // MM::OpenGL::RenderTasks
|
||||
|
Loading…
Reference in New Issue
Block a user