Fixed most memory leaks and rendering as normal.
Merge branch 'master' into memory_management
Still having memory leaks from menu, ipman, sound, and player.
fixed menu leaks.
Fixed leaks in IPMan.
Fixed leaks in sound system.
Fixed leaks in Player. We should make destructors of extendable class virtual.
Fixed leaks in material loading texture. Probably need to give owner ship to AssetManager.