axmol/core/renderer
Deal 9774d4751c
Fix memory leaks refreshed (#1638)
* Fix memory leaks when axmol apps exit on non-embed systems

    1. DriverBase no destroyInstance
    2. Every object inherited from ax::Ref shoud destory before ScriptEngineManager, otherwise will trigger it's reinit and leak
    3.  QuadCommand always leak isolated indices
    4. static singleton should'nt inhert from ax::Ref due to destory it before ScriptEngineManager impossible
    5. Make Director don't inherit from ax::Ref due to it also cause ScriptEngineManager re-init, because we destroy ScriptEngineManger in destructor of Director
    6. Explicit Director managed by Application and don't delete self at purgeDirector, since it will release at mainLoop and re-init in glView->pollEvents then leak
    7. Rename ApplicationProtocol to ApplicationBase
    8. Rename purgeDirector since we don't delete director self at it, maye rename to cleanup
    9. Change ShaderCache to new/delete singleton, managed by ProgramManager

---------

Co-authored-by: lich426 <lich426@gmail.com>
2024-01-29 22:30:14 +08:00
..
backend Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
shaders GLES3: Fix scalar array layout (#1523) 2023-12-15 22:29:23 +08:00
CMakeLists.txt Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
CallbackCommand.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
CallbackCommand.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
CustomCommand.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
CustomCommand.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
GroupCommand.cpp Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
GroupCommand.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
Material.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
Material.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
MeshCommand.cpp Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
MeshCommand.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
Pass.cpp Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
Pass.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
PipelineDescriptor.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
QuadCommand.cpp Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
QuadCommand.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
RenderCommand.cpp Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
RenderCommand.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
RenderCommandPool.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
RenderConsts.h.in Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
RenderState.cpp Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
RenderState.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
Renderer.cpp Ensure scissor state is set to the correct value prior to a buffer clear (#1632) 2024-01-25 13:26:35 +08:00
Renderer.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Shaders.cpp Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Shaders.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
Technique.cpp Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
Technique.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
Texture2D.cpp Fix shader cache leak (#1580) 2024-01-06 00:48:34 +08:00
Texture2D.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
TextureAtlas.cpp Update Sprite::getQuad() to return const reference (#1260) 2023-07-09 19:00:12 +08:00
TextureAtlas.h Update Sprite::getQuad() to return const reference (#1260) 2023-07-09 19:00:12 +08:00
TextureCache.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
TextureCache.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
TextureCube.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
TextureCube.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
TrianglesCommand.cpp Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
TrianglesCommand.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00