-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Setting setOwnsTexture(false); produces memory leaks in:
maplibre-native-qt/src/quick/texture_node_opengl.cpp
Lines 90 to 99 in da184ce
| QSGTexture *qtTexture = QNativeInterface::QSGOpenGLTexture::fromNative( | |
| maplibreTextureId, window, physicalSize, QQuickWindow::TextureHasAlphaChannel); | |
| if (qtTexture != nullptr) { | |
| setTexture(qtTexture); | |
| setRect(QRectF(QPointF(), m_size)); | |
| setFiltering(QSGTexture::Linear); | |
| setOwnsTexture(false); // Don't delete MapLibre's texture! | |
| markDirty(QSGNode::DirtyMaterial); | |
| } |
Changing that line to setOwnsTexture(true); stops the leak.
Metadata
Metadata
Assignees
Labels
No labels