BASTROP, Texas (KXAN) — A Bastrop County Sheriff’s deputy who was reportedly drunk while on the job in January, has officially resigned from the department.

Fred Ensinger was arrested on a DWI charge on Jan. 29 by his own department. The Bastrop County Sheriff’s Office says a sergeant found Ensinger, 43, in his patrol car parked at a mobile home in Bastrop County. The sergeant said as he was speaking with Ensinger he could smell alcohol on his breath. When the sergeant searched the deputy’s patrol car, he found an open quart-sized bottle of vodka, that was a one-third full, in an open backpack in the front passenger seat, according to an arrest affidavit. The search also revealed an empty bottle of prescription medication.

After his arrest, the deputy was placed on paid administrative leave. The department says Ensinger turned in his resignation on March 29. Ensinger’s criminal case is still pending.