aboutsummaryrefslogtreecommitdiff
path: root/layers/device_limits.cpp
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2016-02-03 17:06:33 -0700
committerJon Ashburn <jon@lunarg.com>2016-02-03 17:06:33 -0700
commit42fdfa50e7cb03949cf709f543c13788b2856121 (patch)
treee99d1d1c43e4c4a96fa386da523e2e923e52b492 /layers/device_limits.cpp
parent2248c2b7202c6b7df7a236262c4808b27c1ddeaf (diff)
downloadusermoji-42fdfa50e7cb03949cf709f543c13788b2856121.tar.xz
layers: Fix Windows build error in device_limits
Diffstat (limited to 'layers/device_limits.cpp')
-rw-r--r--layers/device_limits.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp
index 5a7111c6..1b158191 100644
--- a/layers/device_limits.cpp
+++ b/layers/device_limits.cpp
@@ -559,7 +559,8 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(VkCommandBuf
pInfo->queryFlags);
}
if (!skipCall)
- dev_data->device_dispatch_table->BeginCommandBuffer(commandBuffer, pBeginInfo);
+ return dev_data->device_dispatch_table->BeginCommandBuffer(commandBuffer, pBeginInfo);
+ return VK_ERROR_VALIDATION_FAILED_EXT;
}
VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue)
@@ -587,7 +588,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory(
VkDeviceSize memoryOffset)
{
layer_data *dev_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
- VkResult result = VK_ERROR_VALIDATION_FAILED_EXT;
+ VkResult result = VK_ERROR_VALIDATION_FAILED_EXT;
VkBool32 skipCall = VK_FALSE;
VkDeviceSize uniformAlignment = dev_data->physDevPropertyMap[device].limits.minUniformBufferOffsetAlignment;