summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2016-03-07 14:45:40 -0500
committerTobrun <tobrun.van.nuland@gmail.com>2016-03-07 21:47:40 -0500
commite9b7cd724fc51a36f7c7b3cb94942e8e8ffc4c3a (patch)
treeff04a49f94a81e02e6e1257829a3055f902340d5 /platform
parent46986c665e8e1d9902a68cc9ba21303713f24bfc (diff)
downloadqtlocation-mapboxgl-e9b7cd724fc51a36f7c7b3cb94942e8e8ffc4c3a.tar.gz
[android] #3631 - resize fix issue
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() {