mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Fix #15560: Memory leak due to OpenGL Renderer not releasing a texture
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
- Fix: [#15496] Crash in paint_swinging_inverter_ship_structure().
|
||||
- Fix: [#15503] Freeze when doing specific coaster merges with block brakes.
|
||||
- Fix: [#15514] Two different “quit to menu” menu items are available in track designer and track design manager.
|
||||
- Fix: [#15560] Memory leak due to OpenGL Renderer not releasing a texture.
|
||||
- Improved: [#3417] Crash dumps are now placed in their own folder.
|
||||
- Improved: [#13524] macOS arm64 native (universal) app
|
||||
- Improved: [#15538] Software rendering can now draw in parallel when Multithreading is enabled.
|
||||
|
||||
@@ -27,6 +27,11 @@ SwapFramebuffer::SwapFramebuffer(int32_t width, int32_t height)
|
||||
glClearBufferfv(GL_DEPTH, 0, depthValueTransparent);
|
||||
}
|
||||
|
||||
SwapFramebuffer::~SwapFramebuffer()
|
||||
{
|
||||
glDeleteTextures(1, &_backDepth);
|
||||
}
|
||||
|
||||
void SwapFramebuffer::ApplyTransparency(ApplyTransparencyShader& shader, GLuint paletteTex)
|
||||
{
|
||||
_mixFramebuffer.Bind();
|
||||
|
||||
@@ -33,6 +33,7 @@ private:
|
||||
|
||||
public:
|
||||
SwapFramebuffer(int32_t width, int32_t height);
|
||||
~SwapFramebuffer();
|
||||
|
||||
const OpenGLFramebuffer& GetFinalFramebuffer() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user