diff --git a/Source/Engine/Graphics/GPUDevice.cpp b/Source/Engine/Graphics/GPUDevice.cpp index 741d0474f..9a1935228 100644 --- a/Source/Engine/Graphics/GPUDevice.cpp +++ b/Source/Engine/Graphics/GPUDevice.cpp @@ -534,7 +534,11 @@ void GPUDevice::DumpResourcesToLog() const { if (MemoryUsage != other.MemoryUsage) return MemoryUsage > other.MemoryUsage; +#if GPU_ENABLE_RESOURCE_NAMING return Object->GetName().Compare(other.Object->GetName()) > 0; +#else + return (uintptr)Object < (uintptr)other.Object; +#endif } }; Array resources;