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.
This commit is contained in:
Stephen Gutekanst
2021-10-31 00:57:21 -07:00
committed by GitHub
parent 90d81c1a04
commit 55c2da886b

View File

@@ -150,7 +150,6 @@ pub fn main() !void {
);
}
c.glfwSwapBuffers(window);
c.glfwPollEvents();
}