diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-07-27 21:39:42 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-07-27 21:44:11 +0000 |
| commit | 0e57849232ce28c6b39df7777f48641fa97fbb58 (patch) | |
| tree | 0af7c30a181bfb98788544d49f4ba952aca38a77 /src/main.zig | |
| parent | update gitignore (diff) | |
| download | glsl-view-0e57849232ce28c6b39df7777f48641fa97fbb58.tar.gz glsl-view-0e57849232ce28c6b39df7777f48641fa97fbb58.zip | |
fix texture binding bug
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
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(); } } |
