Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Apr 20, 2024
1 parent 6c64eb4 commit 432d780
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/films/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,12 @@ class DisplayInstance final : public Film::Instance {
_window = luisa::make_unique<Window>("Display", size);
auto d = node<Display>();
auto option = SwapchainOption{
.display = _window->native_display(),
.window = _window->native_handle(),
size, d->hdr(), d->vsync(), d->back_buffers()};
.display = _window->native_display(),
.window = _window->native_handle(),
.size = size,
.wants_hdr = d->hdr(),
.wants_vsync = d->vsync(),
.back_buffer_count = d->back_buffers()};
_swapchain = device.create_swapchain(*command_buffer.stream(), option);
_framebuffer = device.create_image<float>(
_swapchain.backend_storage(), size);
Expand Down

0 comments on commit 432d780

Please sign in to comment.