diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-01-26 19:49:25 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-01-26 19:49:25 +0000 |
| commit | 885a8652cb8a433a18811d90048d11c1ec67b60e (patch) | |
| tree | 52b845a825c91ec878983eb1078b4bd48f27ec73 /src/config.zig | |
| parent | remove offset default uniform (diff) | |
| download | glsl-view-885a8652cb8a433a18811d90048d11c1ec67b60e.tar.gz glsl-view-885a8652cb8a433a18811d90048d11c1ec67b60e.zip | |
break OSC in favor of uniform caching
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.zig b/src/config.zig index e2af1e9..ad4a181 100644 --- a/src/config.zig +++ b/src/config.zig @@ -28,7 +28,7 @@ pub const OSCConfig = union(enum) { tcp, unix, }; - + Manual: struct { protocol: Protocol = Protocol.udp, port: u16 = 9000, @@ -60,7 +60,7 @@ pub const Config = struct { const file = try fs.cwd().openFile(filename, .{}); var buffer: [1024]u8 = undefined; const len: usize = try file.read(buffer[0..]); - c.yaml_parser_set_input_string(&parser, &buffer[0], len); + c.yaml_parser_set_input_string(&parser, buffer[0..].ptr, len); var config: Config = .{ .width = 1920, |
