Skip to content

Commit

Permalink
[code] Remove Application global from example
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetari committed Apr 23, 2020
1 parent e711424 commit b78ff9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

using namespace inexor::vulkan_renderer;

Application renderer;

int main(int argc, char *argv[]) {
spdlog::init_thread_pool(8192, 2);

Expand All @@ -23,9 +21,9 @@ int main(int argc, char *argv[]) {
spdlog::set_default_logger(vulkan_renderer_log);

spdlog::debug("Inexor vulkan-renderer, BUILD " + std::string(__DATE__) + ", " + __TIME__);

spdlog::debug("Parsing command line arguments.");

Application renderer;
// We use some simple command line argument parser we wrote ourselves.
renderer.parse_command_line_arguments(argc, argv);

Expand Down
2 changes: 1 addition & 1 deletion include/inexor/vulkan-renderer/renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class VulkanRenderer {

VkPresentModeKHR selected_present_mode;

VkSwapchainKHR swapchain;
VkSwapchainKHR swapchain = VK_NULL_HANDLE;

uint32_t number_of_images_in_swapchain = 0;

Expand Down

0 comments on commit b78ff9c

Please sign in to comment.