aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-02-21 09:57:06 -0500
committerGitHub <noreply@github.com>2019-02-21 09:57:06 -0500
commit9f9ce087f79a3012d3e364054be4f73e6be950b1 (patch)
tree880ba9a53edb77396ed6e994e69904f0d673aaa6 /src
parent21b3eff43a9bf9968b8ee22627ed31e8b7d7bc55 (diff)
downloadamber-9f9ce087f79a3012d3e364054be4f73e6be950b1.tar.gz
fixup shadow variable (#312)
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.cc6
-rw-r--r--src/vulkan/device.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/vulkan/device.cc b/src/vulkan/device.cc
index 139e953..9fc3b3c 100644
--- a/src/vulkan/device.cc
+++ b/src/vulkan/device.cc
@@ -367,16 +367,16 @@ Result Device::Initialize(
if (!r.IsSuccess())
return r;
- bool use_physical_device_features_2_ = false;
+ bool use_physical_device_features_2 = false;
// Determine if VkPhysicalDeviceProperties2KHR should be used
for (auto& ext : required_extensions) {
if (ext == "VK_KHR_get_physical_device_properties2") {
- use_physical_device_features_2_ = true;
+ use_physical_device_features_2 = true;
}
}
VkPhysicalDeviceFeatures available_vulkan_features = {};
- if (use_physical_device_features_2_) {
+ if (use_physical_device_features_2) {
available_vulkan_features = available_features2.features;
} else {
available_vulkan_features = available_features;
diff --git a/src/vulkan/device.h b/src/vulkan/device.h
index 176bd85..2a9d263 100644
--- a/src/vulkan/device.h
+++ b/src/vulkan/device.h
@@ -65,8 +65,6 @@ class Device {
private:
Result LoadVulkanPointers(PFN_vkGetInstanceProcAddr);
- bool use_physical_device_features2_ = false;
-
VkInstance instance_ = VK_NULL_HANDLE;
VkPhysicalDevice physical_device_ = VK_NULL_HANDLE;
VkPhysicalDeviceProperties physical_device_properties_;