From 55c2da886b9f3e2bcf247137bcd33ce5f310ec98 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 31 Oct 2021 00:57:21 -0700 Subject: [PATCH] examples: do not call glfwSwapBuffers I am porting this example to [mach-glfw](github.com/hexops/mach-glfw), and noticed that no GLFW error handling callback is registered because in my port there are a lot of GLFW errors :) `glfwSwapBuffers` here is emitting `GLFW_NO_WINDOW_CONTEXT` errors constantly, because calling it without a valid OpenGL context is illegal. It's not needed for Vulkan. --- examples/triangle.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/triangle.zig b/examples/triangle.zig index e7b19b3..9cfbd4f 100644 --- a/examples/triangle.zig +++ b/examples/triangle.zig @@ -150,7 +150,6 @@ pub fn main() !void { ); } - c.glfwSwapBuffers(window); c.glfwPollEvents(); }