Introducde getDispatchLoaderStatic() to prevent dangling pointers in debug builds

This commit is contained in:
asuessenbach
2021-09-08 09:53:25 +02:00
parent 6a8e344bb0
commit 13bdb2ff69
7 changed files with 131 additions and 15 deletions

View File

@@ -30,6 +30,9 @@ int main( int /*argc*/, char ** /*argv*/ )
{
try
{
// to prevent a warning on unreferenced function vk::getDispatchLoaderStatic, use just one arbitrary vk-function
vk::enumerateInstanceVersion();
// nullptr_t
fct( nullptr );
fctc( nullptr );