diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-04-24 20:30:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-04-24 20:30:10 +0900 |
| commit | 55bf05f1268c8fbbf7f2fb0b6ed44f76801d6b0f (patch) | |
| tree | d0109b310dddc3edc356484b6a7d0d4f2ab401ae /src/rtw/texture.zig | |
| parent | ca7da77181c2232a676c730a94906119a9c64f9c (diff) | |
| download | RayTracingInOneWeekend.zig-55bf05f1268c8fbbf7f2fb0b6ed44f76801d6b0f.tar.gz RayTracingInOneWeekend.zig-55bf05f1268c8fbbf7f2fb0b6ed44f76801d6b0f.tar.zst RayTracingInOneWeekend.zig-55bf05f1268c8fbbf7f2fb0b6ed44f76801d6b0f.zip | |
feat: update zig to 0.12.0
Diffstat (limited to 'src/rtw/texture.zig')
| -rw-r--r-- | src/rtw/texture.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtw/texture.zig b/src/rtw/texture.zig index 4095a9c..ff17579 100644 --- a/src/rtw/texture.zig +++ b/src/rtw/texture.zig @@ -67,8 +67,8 @@ pub const CheckerTexture = struct { even: *const Texture, fn init(allocator: std.mem.Allocator, odd: Texture, even: Texture) !CheckerTexture { - var odd_ = try allocator.create(Texture); - var even_ = try allocator.create(Texture); + const odd_ = try allocator.create(Texture); + const even_ = try allocator.create(Texture); odd_.* = odd; even_.* = even; return .{ |
