Fix shader problems when UBO is disabled.

This cleans up a lot of the opengl errors that get emitted when shaders are compiling.
I also ran some filters to fix up whitespace to match our project coding style.

@vlj: Please confirm that I did not do anything bad. I still can't actually test this because of crashing.