aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorIan Elliott <ianelliott@google.com>2016-05-05 14:06:53 -0600
committerIan Elliott <ianelliott@google.com>2016-05-05 14:16:02 -0600
commitfacee8b3b0b15fc345cacab9a3a028636b131995 (patch)
tree480863e0de9deb5ca3d8ecb74eed05ce8b8832d4 /layers/core_validation.cpp
parent6cde020cc1450235624d5ad9a169237564539afb (diff)
downloadusermoji-facee8b3b0b15fc345cacab9a3a028636b131995.tar.xz
layers: Fix "count" tests in swapchain layer.
The swapchain layer was attempting to test if the application gave a value for a *Count variable (e.g. pSurfaceFormatCount for the vkGetPhysicalDeviceSurfaceFormatsKHR() function) that was larger than what that function returned previously (i.e. when the non-count variable was NULL). However, the test was made after calling down the call-chain, which may modify the value given by the application. This test is now made before calling down the chain. In addition, a new test is made that tries to ensure that the application did call the function with the non-Count variable equal to NULL **before** calling the function with a non-NULL non-Count variable.
Diffstat (limited to 'layers/core_validation.cpp')
0 files changed, 0 insertions, 0 deletions