Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/shadowmap/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ App::App()
auto instExts = windowing.getRequiredVulkanInstanceExtensions();
renderer->initVulkan(instExts);

auto surface = mainWindow->createVkSurface(etna::get_context().getInstance());
auto surface_ = mainWindow->createVkSurface(etna::get_context().getInstance());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for variable 'surface_' [readability-identifier-naming]

Suggested change
auto surface_ = mainWindow->createVkSurface(etna::get_context().getInstance());
auto surface = mainWindow->createVkSurface(etna::get_context().getInstance());

samples/shadowmap/App.cpp:36:

-     std::move(surface_), [window = mainWindow.get()]() { return window->getResolution(); });
+     std::move(surface), [window = mainWindow.get()]() { return window->getResolution(); });


renderer->initFrameDelivery(
std::move(surface), [window = mainWindow.get()]() { return window->getResolution(); });
std::move(surface_), [window = mainWindow.get()]() { return window->getResolution(); });

// TODO: this is bad design, this initialization is dependent on the current ImGui context, but we
// pass it implicitly here instead of explicitly. Beware if trying to do something tricky.
Expand Down
Loading