Fixed some shader-based errors

OpenGL Errors were generated by attempting to update shader uniforms
when shaders were not in use.