forked from mirror/vulkan-zig
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:
committed by
Robin Voetter
parent
f55409f98a
commit
4588c0fcad
@@ -150,7 +150,6 @@ pub fn main() !void {
|
||||
);
|
||||
}
|
||||
|
||||
c.glfwSwapBuffers(window);
|
||||
c.glfwPollEvents();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user