Added shader error checking.