summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rwxr-xr-xplatform/android/src/native_map_view.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/android/src/native_map_view.cpp b/platform/android/src/native_map_view.cpp
index 4634c2aec3..17b7755a23 100755
--- a/platform/android/src/native_map_view.cpp
+++ b/platform/android/src/native_map_view.cpp
@@ -191,7 +191,10 @@ void NativeMapView::invalidate() {
void NativeMapView::beforeRender() {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::beforeRender()");
- // no-op
+ // this fixes the viewport resizing issue,
+ // but we are calling it every time.
+ // we should only call this when the resizeView / resizeFramebuffer is called.
+ glViewport(0,0,fbWidth,fbHeight);
}
void NativeMapView::afterRender() {