Skip to content

Commit b187098

Browse files
hazeycodeCopilot
andauthored
fix submitWithArrayIndex call
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e53c74a commit b187098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compositor.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn submit(self: Self, eye: openvr.Eye, texture: *const openvr.Texture, textu
7171
}
7272

7373
pub fn submitWithArrayIndex(self: Self, eye: openvr.Eye, textures: [*]openvr.Texture, index: u32, texture_bounds: ?openvr.TextureBounds, flags: openvr.SubmitFlags) openvr.CompositorError!void {
74-
const compositor_error = self.function_table.SubmitWithArrayIndex(eye, textures, index, texture_bounds, flags);
74+
const compositor_error = self.function_table.SubmitWithArrayIndex(eye, textures, index, if (texture_bounds) |tb| &tb else null, flags);
7575
try compositor_error.maybe();
7676
}
7777

0 commit comments

Comments
 (0)