[android] #3631 - resize fix issue

This commit is contained in:
Tobrun
2016-03-07 14:45:40 -05:00
parent 46986c665e
commit e9b7cd724f

View File

@@ -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() {