Added gl state caching and a hopefully leak preventing proxy thingy.