Purged a bunch of unneeded opengl code.