axmol/core/renderer/backend
j-jorge bfb30f573a
Fix shader cache leak (#1580)
* Fix compilation issue in Texture2D.cpp with _AX_DEBUG=2.

* Fix memory leak: ShaderCache was not purged.

The ShaderCache class had two static members: a map for the cache, and
a pointer to the single instance of ShaderCache. The map was
supposedly cleared in the destructor but there was actually no
instance of ShaderCache (getInstance() was never called and the other
functions accessed the map directly). This commit removes the
singleton "interface" such that only the map is used, then it cleared
the map upon request.
2024-01-06 00:48:34 +08:00
..
metal Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +08:00
opengl Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +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 Merge backend Device, DeviceInfo to DriverBase (#1499) 2023-12-11 21:59:25 +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 shader cache leak (#1580) 2024-01-06 00:48:34 +08:00
ProgramManager.h Prepare 2.1.0 release 2023-12-08 01:04:43 +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 Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +08:00
ProgramStateRegistry.h Merge: 41714a04fd 2631c8405b 2023-09-02 19:56:50 +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 shader cache leak (#1580) 2024-01-06 00:48:34 +08:00
ShaderCache.h Fix shader cache leak (#1580) 2024-01-06 00:48:34 +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