src/video/SDL_vulkan_utils.c
changeset 11385 1b4ef2593eca
parent 11381 2610f8f0a9c6
child 11394 910be5fe412a
equal deleted inserted replaced
11384:269bdd5aa742 11385:1b4ef2593eca
   131         return NULL;
   131         return NULL;
   132     }
   132     }
   133     if(count == 0)
   133     if(count == 0)
   134     {
   134     {
   135         retval = SDL_calloc(1, sizeof(VkExtensionProperties)); // so we can return non-null
   135         retval = SDL_calloc(1, sizeof(VkExtensionProperties)); // so we can return non-null
   136         if(!retval)
       
   137         {
       
   138             SDL_OutOfMemory();
       
   139             return NULL;
       
   140         }
       
   141         *extensionCount = 0;
       
   142     }
   136     }
   143     retval = SDL_calloc(count, sizeof(VkExtensionProperties));
   137 	else
       
   138 	{
       
   139 		retval = SDL_calloc(count, sizeof(VkExtensionProperties));
       
   140 	}
   144     if(!retval)
   141     if(!retval)
   145     {
   142     {
   146         SDL_OutOfMemory();
   143         SDL_OutOfMemory();
   147         return NULL;
   144         return NULL;
   148     }
   145     }