diff options
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.zig b/src/output.zig index 96b3f3e..459bedb 100644 --- a/src/output.zig +++ b/src/output.zig @@ -66,7 +66,7 @@ pub const WindowOutput = struct { } fn update(output: *Output, texture_id: c.GLuint) bool { - const self = @fieldParentPtr(WindowOutput, "output", output); + const self: *WindowOutput = @fieldParentPtr("output", output); if (c.glfwWindowShouldClose(self.window) == c.GL_TRUE) return true; @@ -109,7 +109,7 @@ pub const WindowOutput = struct { } fn destroy(output: *Output) void { - const self = @fieldParentPtr(WindowOutput, "output", output); + const self: *WindowOutput = @fieldParentPtr("output", output); c.glfwDestroyWindow(self.window); } |
