fix shader buffer compile function.