Fixed a lot of bugs.
Scoped and indented all push pop matrix and begin end fbo and shader calls for readability.