tidy up code
glsl: remove unneeded error check