From 329775eeccb5233bbb5d4400399a9edf9cdedef1 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Thu, 10 Feb 2022 13:33:28 -0300 Subject: [PATCH] Fix various functions that couldn't be public (#265) The struct ScheduledTasks is protected, hence functions that use it as arguments can never be used. Additionally, those functions made no sense to be called externally --- OgreMain/include/OgreTextureGpuManager.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OgreMain/include/OgreTextureGpuManager.h b/OgreMain/include/OgreTextureGpuManager.h index 096661c0596..826b2609511 100644 --- a/OgreMain/include/OgreTextureGpuManager.h +++ b/OgreMain/include/OgreTextureGpuManager.h @@ -1192,6 +1192,7 @@ namespace Ogre /// This function CAN be called from any thread const String *findResourceGroupStr( IdString idName ) const; + protected: /// Implements TaskTypeResidencyTransition when doing any of the following transitions: /// OnStorage -> Resident /// OnStorage -> OnSystemRam @@ -1206,8 +1207,6 @@ namespace Ogre void taskToUnloadOrDestroy( TextureGpu *texture, const ScheduledTasks &task ); bool executeTask( TextureGpu *texture, TextureGpuListener::Reason reason, const ScheduledTasks &task ); - - protected: void notifyTextureChanged( TextureGpu *texture, TextureGpuListener::Reason reason, bool ignoreDelay );