aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 96b87eb..0883c15 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -119,7 +119,6 @@ pub fn main() !void {
while (c.glfwWindowShouldClose(window) == c.GL_FALSE) {
c.glfwMakeContextCurrent(window);
- c.glClear(c.GL_COLOR_BUFFER_BIT);
const now_time = c.glfwGetTime();
prev_time = now_time;
@@ -155,6 +154,9 @@ pub fn main() !void {
if (outputs.items.len == 0)
break;
+ c.glfwMakeContextCurrent(window);
+ c.glfwSwapBuffers(window);
+
c.glfwPollEvents();
}
}