Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Senryoku committed Nov 14, 2024
1 parent 9304878 commit d25848e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gdi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub const GDI = struct {
.track_type = track_type,
.format = format,
.pregap = pregap,
.data = @as([]align(std.mem.page_size) const u8, @alignCast(@ptrCast(ptr)))[0..info.RegionSize],
.data = @as([*]align(std.mem.page_size) const u8, @alignCast(@ptrCast(ptr)))[0..info.RegionSize],
.platform_specific = .{
.file_handle = file_handle,
.mapping_handle = mapping_handle,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,7 @@ pub const Renderer = struct {
pass.draw(3 * volume.triangle_count, 1, 3 * volume.first_triangle_index, 0);
}
} else {
renderer_log.warn(termcolor.yellow("TODO: Unhandled Open Translucent Mofifier Volume!"), .{});
renderer_log.warn(termcolor.yellow("TODO: Unhandled Open Translucent Modifier Volume!"), .{});
// TODO: Almost the same thing, but the compute shader is really simple: Take the smallest
// depth value and add a volume from it to "infinity" (1.0+ depth). Or find a more efficient way :)
}
Expand Down

0 comments on commit d25848e

Please sign in to comment.