add cleanup call for destroying framebuffers
This commit is contained in:
@@ -21,7 +21,7 @@ Painter::Painter(Map &map)
|
||||
}
|
||||
|
||||
Painter::~Painter() {
|
||||
clearFramebuffers();
|
||||
cleanup();
|
||||
}
|
||||
|
||||
bool Painter::needsAnimation() const {
|
||||
@@ -75,6 +75,10 @@ void Painter::setupShaders() {
|
||||
compositeShader = std::make_unique<CompositeShader>();
|
||||
}
|
||||
|
||||
void Painter::cleanup() {
|
||||
clearFramebuffers();
|
||||
}
|
||||
|
||||
void Painter::resize() {
|
||||
const TransformState &state = map.getState();
|
||||
if (gl_viewport != state.getFramebufferDimensions()) {
|
||||
|
||||
Reference in New Issue
Block a user