From a1f727c9d004e5875439c77a42d9f316ac95b24f Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 24 Jan 2019 16:25:11 +0100 Subject: [PATCH] Fixed compilation of Tests.cpp. --- src/Tests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Tests.cpp b/src/Tests.cpp index aececf3..fbdbcd5 100644 --- a/src/Tests.cpp +++ b/src/Tests.cpp @@ -1722,11 +1722,10 @@ static void TestDefragmentationGpu() // If corruption detection is enabled, GPU defragmentation may not work on // memory types that have this detection active, e.g. on Intel. - if(VMA_DEBUG_DETECT_CORRUPTION == 0) - { + #if !defined(VMA_DEBUG_DETECT_CORRUPTION) || VMA_DEBUG_DETECT_CORRUPTION == 0 TEST(stats.allocationsMoved > 0 && stats.bytesMoved > 0); TEST(stats.deviceMemoryBlocksFreed > 0 && stats.bytesFreed > 0); - } + #endif } ValidateGpuData(allocations.data(), allocations.size());