We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e109a commit 5d9326dCopy full SHA for 5d9326d
Source/Entities/SceneLayer.cpp
@@ -203,6 +203,7 @@ template <bool TRACK_DRAWINGS, bool STATIC_TEXTURE>
203
int SceneLayerImpl<TRACK_DRAWINGS, STATIC_TEXTURE>::LoadDataFromBitmap(BITMAP* bitmap) {
204
if (m_MainBitmapOwned) {
205
destroy_bitmap(m_MainBitmap);
206
+ m_MainBitmap = nullptr;
207
}
208
209
m_MainBitmap = bitmap;
@@ -222,6 +223,7 @@ template <bool TRACK_DRAWINGS, bool STATIC_TEXTURE>
222
223
int SceneLayerImpl<TRACK_DRAWINGS, STATIC_TEXTURE>::LoadData() {
224
225
226
227
228
229
// Load from disk and take ownership. Don't cache because the bitmap will be modified.
0 commit comments