diff options
author | aap <aap@papnet.eu> | 2019-06-13 12:25:55 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-13 12:25:55 +0200 |
commit | f407c9829fb5eac2c00867d2b31b2766dfe70540 (patch) | |
tree | 49afbef27c493ac1406c0b621a29ed5df78e9a86 /src/render/VisibilityPlugins.cpp | |
parent | implemented GTA stream read functions (diff) | |
download | re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar.gz re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar.bz2 re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar.lz re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar.xz re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.tar.zst re3-f407c9829fb5eac2c00867d2b31b2766dfe70540.zip |
Diffstat (limited to 'src/render/VisibilityPlugins.cpp')
-rw-r--r-- | src/render/VisibilityPlugins.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/VisibilityPlugins.cpp b/src/render/VisibilityPlugins.cpp index 5608c933..316a397c 100644 --- a/src/render/VisibilityPlugins.cpp +++ b/src/render/VisibilityPlugins.cpp @@ -49,6 +49,13 @@ CVisibilityPlugins::Initialise(void) } void +CVisibilityPlugins::Shutdown(void) +{ + m_alphaList.Shutdown(); + m_alphaEntityList.Shutdown(); +} + +void CVisibilityPlugins::InitAlphaEntityList(void) { m_alphaEntityList.Clear(); @@ -822,6 +829,7 @@ CVisibilityPlugins::GetClumpAlpha(RpClump *clump) STARTPATCHES InjectHook(0x527E50, CVisibilityPlugins::Initialise, PATCH_JUMP); + InjectHook(0x527EA0, CVisibilityPlugins::Shutdown, PATCH_JUMP); InjectHook(0x528F90, CVisibilityPlugins::InitAlphaEntityList, PATCH_JUMP); InjectHook(0x528FF0, CVisibilityPlugins::InsertEntityIntoSortedList, PATCH_JUMP); InjectHook(0x528F80, CVisibilityPlugins::InitAlphaAtomicList, PATCH_JUMP); |