Browse Source

vulkan: fix linux build attempt 3

niki 2 years ago
parent
commit
67d607fff6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/libraries/vma/vk_mem_alloc.h

+ 4 - 1
src/libraries/vma/vk_mem_alloc.h

@@ -15248,7 +15248,10 @@ VkResult VmaAllocator_T::CreatePool(const VmaPoolCreateInfo* pCreateInfo, VmaPoo
     // Protection against uninitialized new structure member. If garbage data are left there, this pointer dereference would crash.
     if(pCreateInfo->pMemoryAllocateNext)
     {
-        VMA_ASSERT(((const VkBaseInStructure*)pCreateInfo->pMemoryAllocateNext)->sType != 0);
+        // Sometimes gcc creates an error:
+        // ISO C++ forbis declaration of 'type name' with no type [-fpermissive]
+        
+        // VMA_ASSERT(((const VkBaseInStructure*)pCreateInfo->pMemoryAllocateNext)->sType != 0);
     }
 
     if(newCreateInfo.maxBlockCount == 0)