mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Plug memory leak in OpenGL engine (#17250)
This commit is contained in:
committed by
GitHub
parent
1516eba02d
commit
7832288ff9
@@ -191,7 +191,7 @@ private:
|
||||
std::unique_ptr<ApplyPaletteShader> _applyPaletteShader;
|
||||
std::unique_ptr<OpenGLFramebuffer> _screenFramebuffer;
|
||||
std::unique_ptr<OpenGLFramebuffer> _scaleFramebuffer;
|
||||
OpenGLFramebuffer* _smoothScaleFramebuffer = nullptr;
|
||||
std::unique_ptr<OpenGLFramebuffer> _smoothScaleFramebuffer;
|
||||
OpenGLWeatherDrawer _weatherDrawer;
|
||||
|
||||
public:
|
||||
@@ -451,7 +451,7 @@ private:
|
||||
if (GetContext()->GetUiContext()->GetScaleQuality() == ScaleQuality::SmoothNearestNeighbour)
|
||||
{
|
||||
uint32_t scale = std::ceil(gConfigGeneral.window_scale);
|
||||
_smoothScaleFramebuffer = new OpenGLFramebuffer(_width * scale, _height * scale, false, false);
|
||||
_smoothScaleFramebuffer = std::make_unique<OpenGLFramebuffer>(_width * scale, _height * scale, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user