From 4588c0fcad0b5b9a69cd796483b915f67705679c 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 f357a24..dbcb83a 100644 --- a/examples/triangle.zig +++ b/examples/triangle.zig @@ -150,7 +150,6 @@ pub fn main() !void { ); } - c.glfwSwapBuffers(window); c.glfwPollEvents(); }