diff --git a/platform/android/src/native_map_view.cpp b/platform/android/src/native_map_view.cpp index 861f068cb..9f6328cd5 100755 --- a/platform/android/src/native_map_view.cpp +++ b/platform/android/src/native_map_view.cpp @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -320,8 +321,8 @@ void NativeMapView::update(jni::JNIEnv&) { } void NativeMapView::resizeView(jni::JNIEnv&, int w, int h) { - width = w; - height = h; + width = util::max(64, w); + height = util::max(64, h); map->setSize({ static_cast(width), static_cast(height) }); } diff --git a/platform/android/src/native_map_view.hpp b/platform/android/src/native_map_view.hpp index d48d5a107..770065a8a 100755 --- a/platform/android/src/native_map_view.hpp +++ b/platform/android/src/native_map_view.hpp @@ -315,10 +315,12 @@ private: bool firstRender = true; double fps = 0.0; - int width = 0; - int height = 0; - int fbWidth = 0; - int fbHeight = 0; + // Minimum texture size according to OpenGL ES 2.0 specification. + int width = 64; + int height = 64; + int fbWidth = 64; + int fbHeight = 64; + bool framebufferSizeChanged = true; int availableProcessors = 0;