vk: devmem: print number of alloc slots on overflow
This commit is contained in:
parent
05ac770c81
commit
ceb4437f8c
|
@ -175,7 +175,7 @@ static VkDeviceSize optimalSize(VkDeviceSize size) {
|
|||
|
||||
static int allocateDeviceMemory(VkMemoryRequirements req, int type_index, VkMemoryAllocateFlags allocate_flags) {
|
||||
if ( g_devmem.alloc_slots_count == MAX_DEVMEM_ALLOC_SLOTS ) {
|
||||
gEngine.Host_Error( "Ran out of device memory allocation slots\n" );
|
||||
gEngine.Host_Error( "Ran out of %d device memory allocation slots\n", (int)MAX_DEVMEM_ALLOC_SLOTS );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue