The pool law in Texas is designed to keep swimmers safe and to prevent drownings. The law requires that all public pools be equipped with certain safety features, including a lifeguard on duty at all times, a fence around the perimeter of the pool, and signs posted warning of the dangers of swimming without supervision.