aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-02-04 17:12:36 -0700
committerTobin Ehlis <tobine@google.com>2016-02-05 11:12:59 -0700
commitdcd304f0394e3415f743e329e75e522c8c2e55e1 (patch)
tree0f0a90a8003d7d5826459572d08f6ac822d3fcd4
parent0428dbc72c2f8140f2ec6634e9ee51d4ff7e7564 (diff)
downloadusermoji-dcd304f0394e3415f743e329e75e522c8c2e55e1.tar.xz
layer: GL125 only check for fence in_use on valid fence handles
-rw-r--r--layers/draw_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index ef47f265..e096465b 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -3586,7 +3586,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(VkQueue queue, uint
pCB->submitCount++; // increment submit count
skipCall |= validatePrimaryCommandBufferState(dev_data, pCB);
}
- if (dev_data->fenceMap[fence].in_use.load()) {
+ if ((fence != VK_NULL_HANDLE) && dev_data->fenceMap[fence].in_use.load()) {
skipCall |= log_msg(
dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT,