[android] remove manual ref counting on activation/deactivation
This commit is contained in:
committed by
Ivo van Dongen
parent
9ebf727f56
commit
b5c0bf1b8d
@@ -117,9 +117,6 @@ gl::ProcAddress NativeMapView::initializeExtension(const char* name) {
|
||||
}
|
||||
|
||||
void NativeMapView::activate() {
|
||||
if (active++) {
|
||||
return;
|
||||
}
|
||||
|
||||
oldDisplay = eglGetCurrentDisplay();
|
||||
oldReadSurface = eglGetCurrentSurface(EGL_READ);
|
||||
@@ -148,10 +145,6 @@ void NativeMapView::activate() {
|
||||
* From mbgl::RendererBackend.
|
||||
*/
|
||||
void NativeMapView::deactivate() {
|
||||
if (--active) {
|
||||
return;
|
||||
}
|
||||
|
||||
assert(vm != nullptr);
|
||||
|
||||
if (oldContext != context && oldContext != EGL_NO_CONTEXT) {
|
||||
|
||||
Reference in New Issue
Block a user