[core] Band-aid for crash triggered by unbound element buffer (#6844)

This commit is contained in:
John Firebaugh
2016-10-27 18:28:10 -07:00
committed by Jason Wray
parent 95ae833244
commit 057b7b75ce

View File

@@ -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);
}
}