Skip to content

Commit

Permalink
Forgot to include the <functional> header
Browse files Browse the repository at this point in the history
  • Loading branch information
Khrysys committed Nov 4, 2023
1 parent 14fdff3 commit 8896a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/dragon/core/vk_helpers/physical_device.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <functional>
#include <vector>

#include <vulkan/vulkan.h>
Expand Down
3 changes: 1 addition & 2 deletions src/instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ namespace Dragon {
}
createInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;

VkInstance* i = &(instance.instance);
VkResult res = vkCreateInstance(&createInfo, this->pAllocCallbacks, i);
VkResult res = vkCreateInstance(&createInfo, this->pAllocCallbacks, &instance.instance);

if(res != VK_SUCCESS) {
ResultError error;
Expand Down

0 comments on commit 8896a6c

Please sign in to comment.