Skip to content

Commit

Permalink
Current context can be NULL
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
hazeycode committed Nov 20, 2024
1 parent 345fea0 commit ce756fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zglfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ pub fn rawMouseMotionSupported() bool {
extern fn glfwRawMouseMotionSupported() i32;

pub const makeContextCurrent = glfwMakeContextCurrent;
extern fn glfwMakeContextCurrent(window: *Window) void;
extern fn glfwMakeContextCurrent(window: ?*Window) void;

pub const getCurrentContext = glfwGetCurrentContext;
extern fn glfwGetCurrentContext() *Window;
extern fn glfwGetCurrentContext() ?*Window;

pub const swapInterval = glfwSwapInterval;
extern fn glfwSwapInterval(interval: i32) void;
Expand Down

0 comments on commit ce756fa

Please sign in to comment.