Pablo Escobar 5 years ago
parent
commit
be626359f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderer_vk.cpp

+ 1 - 1
src/renderer_vk.cpp

@@ -4104,7 +4104,7 @@ VK_IMPORT_DEVICE
 					);
 				}
 			}
-			while ((result == VK_ERROR_OUT_OF_HOST_MEMORY || result == VK_ERROR_OUT_OF_DEVICE_MEMORY) && searchIndex >= 0);
+			while (result != VK_SUCCESS && searchIndex >= 0);
 
 			return result;
 		}