fix Assimp rotations
fix #3597: make VBO/PBO safer against out of memory
embed bdfeca672fe4 into syntax of other similar functions