Fix windows build issues in cube.c and device_limits.cpp
authorTobin Ehlis <tobin@lunarg.com>
Tue, 29 Sep 2015 17:22:37 +0000 (11:22 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Tue, 29 Sep 2015 17:22:37 +0000 (11:22 -0600)
demos/cube.c
layers/device_limits.cpp

index b33986837aa296ff641491da0479134a53eb658a..9d3c7a8667fc5c52f59c9ef18fc3fa4229895c2f 100644 (file)
@@ -2275,7 +2275,7 @@ static void demo_init_vk(struct demo *demo)
     assert(gfx_queue_idx < demo->queue_count);
     // Query fine-grained feature support for this device.
     //  If app has specific feature requirements it should check supported features based on this query
-    VkPhysicalDeviceFeatures physDevFeatures = {};
+    VkPhysicalDeviceFeatures physDevFeatures;
     err = vkGetPhysicalDeviceFeatures(demo->gpu, &physDevFeatures);
     assert(!err);
 
index 8e20ace98f369e0b75965d3866de47917374d622..8cb8b6b5607a00831b6592eee3794916480f0d29 100644 (file)
@@ -356,6 +356,7 @@ static VkBool32 validate_features_request(layer_data *phy_dev_data)
         skipCall |= log_msg(phy_dev_data->report_data, VK_DBG_REPORT_WARN_BIT, VK_OBJECT_TYPE_PHYSICAL_DEVICE, 0, 0, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL",
                 "You requested features that are unavailable on this device. You should first query feature availability by calling vkGetPhysicalDeviceFeatures().");
     }
+    return skipCall;
 }
 
 VK_LAYER_EXPORT VkResult VKAPI vkCreateDevice(VkPhysicalDevice gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice)