From 22b871ad2f6ad47ef09efd3f6db52214b6ea261a Mon Sep 17 00:00:00 2001 From: kearwood Date: Sat, 16 Jul 2022 00:22:53 -0700 Subject: [PATCH] Removed unnecessary check for maximum Vulkan allocator count in KRTexture2D::createGPUTexture --- kraken/KRTexture2D.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kraken/KRTexture2D.cpp b/kraken/KRTexture2D.cpp index 4887811..a1923b2 100755 --- a/kraken/KRTexture2D.cpp +++ b/kraken/KRTexture2D.cpp @@ -51,9 +51,8 @@ bool KRTexture2D::createGPUTexture(int lod_max_dim) { m_new_lod_max_dim = 0; KRDeviceManager* deviceManager = getContext().getDeviceManager(); - int iAllocation = 0; - for (auto deviceItr = deviceManager->getDevices().begin(); deviceItr != deviceManager->getDevices().end() && iAllocation < KRENGINE_MAX_GPU_COUNT; deviceItr++, iAllocation++) { + for (auto deviceItr = deviceManager->getDevices().begin(); deviceItr != deviceManager->getDevices().end(); deviceItr++) { KRDevice& device = *(*deviceItr).second; KrDeviceHandle deviceHandle = (*deviceItr).first; VmaAllocator allocator = device.getAllocator();