axmol/core/renderer/backend
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
..
metal Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
opengl Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
Backend.h Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
Buffer.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
CommandBuffer.cpp Final migrate (#876) 2022-10-01 16:24:52 +08:00
CommandBuffer.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
DepthStencilState.cpp Final migrate (#876) 2022-10-01 16:24:52 +08:00
DepthStencilState.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
DriverBase.cpp Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
DriverBase.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
Enums.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Macros.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
PixelBufferDescriptor.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
PixelFormatUtils.cpp Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
PixelFormatUtils.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Program.cpp Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
Program.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
ProgramManager.cpp Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
ProgramManager.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
ProgramState.cpp Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
ProgramState.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
ProgramStateRegistry.cpp Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
ProgramStateRegistry.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
RenderPassDescriptor.cpp Final migrate (#876) 2022-10-01 16:24:52 +08:00
RenderPassDescriptor.h Final migrate (#876) 2022-10-01 16:24:52 +08:00
RenderPipeline.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
RenderTarget.h Remove CC prefix from code file name (#1230) 2023-06-11 13:08:08 +08:00
ShaderCache.cpp Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
ShaderCache.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
ShaderModule.cpp Final migrate (#876) 2022-10-01 16:24:52 +08:00
ShaderModule.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
Texture.cpp Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Texture.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
Types.cpp Final migrate (#876) 2022-10-01 16:24:52 +08:00
Types.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
VertexLayout.cpp Processing wasm touch events properly 2023-09-07 19:32:06 +08:00
VertexLayout.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00