From db752a2f7b329495f33c2e6328adf81881c6dc2d Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 1 Jan 2023 00:22:39 -0600 Subject: [PATCH] chore: combine render() and draw() in backend --- src/backend_glfw_opengl3.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend_glfw_opengl3.zig b/src/backend_glfw_opengl3.zig index 785ed0b..dfda8ad 100644 --- a/src/backend_glfw_opengl3.zig +++ b/src/backend_glfw_opengl3.zig @@ -20,11 +20,8 @@ pub fn newFrame(width: f32, height: f32) void { zgui.newFrame(); } -pub fn render() void { - zgui.render(); -} - pub fn draw() void { + zgui.render(); ImGui_ImplOpenGL3_RenderDrawData(zgui.getDrawData()); }