MAX2(count * struct size, 1) results in 1 for count=0, not the size of a struct.
Since this MAX only seems to exist so we can keep using NULL for error reporting,
just refactor to return a VkResult.
Fixes:
|
||
---|---|---|
.. | ||
device-select-layer | ||
overlay-layer | ||
registry | ||
util | ||
wsi | ||
Android.mk | ||
Makefile.sources | ||
meson.build | ||
vulkan-icd-symbols.txt |