diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-10-27 18:28:10 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-10-27 18:31:00 -0700 |
commit | 057b7b75cec08a2d65e714bb52655cf3960c20f1 (patch) | |
tree | 9799cfbf5564ec065d51445c9e9e6e9609ce4bc5 | |
parent | 95ae8332447a545e753882bde2889fb9fd599b7c (diff) | |
download | qtlocation-mapboxgl-057b7b75cec08a2d65e714bb52655cf3960c20f1.tar.gz |
[core] Band-aid for crash triggered by unbound element buffer (#6844)
-rw-r--r-- | src/mbgl/geometry/vao.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/geometry/vao.hpp b/src/mbgl/geometry/vao.hpp index 150a6badbd..5ab784c0c7 100644 --- a/src/mbgl/geometry/vao.hpp +++ b/src/mbgl/geometry/vao.hpp @@ -44,6 +44,9 @@ public: storeBinding(shader, vertexBuffer.getID(), elementsBuffer.getID(), offset); } } else { + // Band-aid for https://github.com/mapbox/mapbox-gl-native/issues/5731 + elementsBuffer.bind(store); + verifyBinding(shader, vertexBuffer.getID(), elementsBuffer.getID(), offset); } } |