Skip to content

Commit 2f95796

Browse files
committed
fix scene destroy vram leak
1 parent cfeb1cd commit 2f95796

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Entities/SceneLayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void SceneLayerImpl<TRACK_DRAWINGS, STATIC_TEXTURE>::Clear() {
3535
m_BitmapFile.Reset();
3636
m_MainBitmap = nullptr;
3737
m_BackBitmap = nullptr;
38+
m_MainTexture.reset();
3839
m_LastClearColor = ColorKeys::g_InvalidColor;
3940
m_Drawings.clear();
4041
m_MainBitmapOwned = false;

0 commit comments

Comments
 (0)