diff options
| author | Mike Stroyan <stroyan@google.com> | 2016-02-10 08:29:08 -0700 |
|---|---|---|
| committer | Mike Stroyan <stroyan@google.com> | 2016-02-10 08:29:08 -0700 |
| commit | 276290f5eb44849a13ca386c6de55aeaeb32f3df (patch) | |
| tree | 7313859f935c13be9036579fb732ac948d652af6 /layers | |
| parent | 3c306563d9303000f29d432f33967555b0225dad (diff) | |
| download | usermoji-276290f5eb44849a13ca386c6de55aeaeb32f3df.tar.xz | |
layers: draw_state allow pInheritanceInfo NULL
The pInheritanceInfo field in VkCommandBufferBeginInfo may be NULL.
Test for that before using it in draw_state layer.
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/draw_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 5a86b9d4..ce3e3f8e 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -4550,7 +4550,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(VkCommandBuf "support precise occlusion queries.", reinterpret_cast<void*>(commandBuffer)); } } - if (pInfo->renderPass != VK_NULL_HANDLE) { + if (pInfo && pInfo->renderPass != VK_NULL_HANDLE) { auto rp_data = dev_data->renderPassMap.find(pInfo->renderPass); if (rp_data != dev_data->renderPassMap.end() && rp_data->second && rp_data->second->pCreateInfo) { if (pInfo->subpass >= rp_data->second->pCreateInfo->subpassCount) { |
