Merged in physics and found a resource bug

Textures loaded by models is not released correctly.