From 6eb90702435aafe686d183b9425eb7d55ce8889b Mon Sep 17 00:00:00 2001 From: James Walker Date: Tue, 17 Dec 2024 15:52:57 -0800 Subject: [PATCH] getMemoryStats was reporting used staging texture bytes as available, and vice versa --- OgreMain/src/OgreTextureGpuManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OgreMain/src/OgreTextureGpuManager.cpp b/OgreMain/src/OgreTextureGpuManager.cpp index 53d809091b..fd24b30a1d 100644 --- a/OgreMain/src/OgreTextureGpuManager.cpp +++ b/OgreMain/src/OgreTextureGpuManager.cpp @@ -1164,8 +1164,8 @@ namespace Ogre size_t &outUsedStagingTextureBytes, size_t &outAvailableStagingTextureBytes ) { - outUsedStagingTextureBytes = getConsumedMemoryByStagingTextures( mAvailableStagingTextures ); - outAvailableStagingTextureBytes = getConsumedMemoryByStagingTextures( mUsedStagingTextures ); + outAvailableStagingTextureBytes = getConsumedMemoryByStagingTextures( mAvailableStagingTextures ); + outUsedStagingTextureBytes = getConsumedMemoryByStagingTextures( mUsedStagingTextures ); size_t textureBytesCpu = 0; size_t textureBytesGpu = 0;