diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-06 15:47:54 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-10 18:01:28 +0300 |
commit | f1bcca1465b5824c425b395ee6700a1431ca5509 (patch) | |
tree | 8a3e728135da7af8ffa3338260204a6a7c8a3507 /platform/android/src/native_map_view.hpp | |
parent | 2417d13f08fc0457b6e9d38a1da7df110a71837a (diff) | |
download | qtlocation-mapboxgl-f1bcca1465b5824c425b395ee6700a1431ca5509.tar.gz |
[android] Initialize NativeMapView with OpenGL ES 2.0 minimum texture size
Diffstat (limited to 'platform/android/src/native_map_view.hpp')
-rwxr-xr-x | platform/android/src/native_map_view.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/android/src/native_map_view.hpp b/platform/android/src/native_map_view.hpp index d48d5a107c..770065a8a3 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; |