More AABB stuff, + also fixed a few texture leaks.