LEANDER, Texas (AP) — Dash cam video shows what happened when a school bus driver ignored a barricade and drove into a flooded road in Texas.

It occurred October 16 as heavy rain caused flooding around Austin.

Footage released by police in Leander shows the bus, carrying one child, was quickly swept away as the water got deeper and covered the hood. The bus eventually ended up in a clump of trees, where the driver and 12-year-old passenger were rescued.

The driver was fired. Police charged him with endangering a child and failure to obey warning signs.

Police say they released the video to show the dangers of trying to drive in flood conditions, noting that, “For each foot the water rises up the side of the vehicle, the vehicle displaces 1,500 lbs. of water. In effect, the vehicle weighs 1,500 lbs. less for each foot the water rises.”

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)