[android] - checking is renderer is not destroyed before delivering the snapshot
This commit is contained in:
@@ -98,10 +98,6 @@ private:
|
||||
|
||||
void onSurfaceChanged(JNIEnv&, jint width, jint height);
|
||||
|
||||
void onResume(JNIEnv&);
|
||||
|
||||
void onPause(JNIEnv&);
|
||||
|
||||
private:
|
||||
GenericUniqueWeakObject<MapRenderer> javaPeer;
|
||||
|
||||
@@ -124,7 +120,7 @@ private:
|
||||
std::mutex updateMutex;
|
||||
|
||||
bool framebufferSizeChanged = false;
|
||||
std::atomic<bool> paused {false};
|
||||
std::atomic<bool> destroyed {false};
|
||||
|
||||
std::unique_ptr<SnapshotCallback> snapshotCallback;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user