Skip to content

Commit

Permalink
Fix various functions that couldn't be public (#265)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
darksylinc committed Feb 10, 2022
1 parent 1dbe6fc commit 329775e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OgreMain/include/OgreTextureGpuManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );

Expand Down

0 comments on commit 329775e

Please sign in to comment.