OPINION
James David Ducker appeals his conviction of aggravated sexual assault of a child younger than fourteen years of age. Tex. Pen.Code ANn. § 22.021 (Vernon Supp. 2001). Appellant entered a plea of not guilty, but changed his plea to guilty after the State’s opening statement. Appellant also pleaded true to one enhancement paragraph. The trial court accepted appellant’s guilty plea and instructed the jury to find appellant guilty as charged in the indictment. The jury found appellant guilty, and the trial court assessed punishment at life imprisonment.
In two points of error, appellant contends his plea was not knowing and voluntary because the trial court failed to admonish appellant regarding the statutory requirement that he register as a sex offender following service of his prison term. Appellant also contends that the trial court erred by failing to sua sponte withdraw his guilty plea. For reasons that follow, we overrule appellant’s two points of error and affirm the trial court’s judgment.
Factual and Procedural Background
In 1999, the grand jury indicted appellant for sexually assaulting his son, who was five years old at the time of *793 the assault. The trial court explained to appellant his various plea options and admonished appellant on the range of punishment, including how his previous felony conviction affected that range. After the State read the indictment, the trial court asked appellant what his plea would be. Appellant responded, “I guess I have to go with not guilty.” Two days later, following voir dire, appellant twice told the trial court that he wanted to change his plea to guilty. First, appellant told the trial court, outside the presence of the jury, that he wanted to talk with his son when he was brought into the courtroom. The trial court told appellant that he did not have the right to speak to his son, and if he refused to remain quiet when his son testified he would be placed in the holdover where he could only hear the proceedings. At that point, appellant told the trial court he did not “want to put this boy through this,” and wanted to change his plea. The trial court told appellant to think about “whether you really want to change that plea or not” while the jury was sworn and the indictment read to the jury. The jury entered the courtroom and was sworn. The indictment was presented to the jury, and the trial court asked appellant’s trial counsel what his client’s plea was. Trial counsel told the trial court that appellant was entering a plea of not guilty. After the State presented its opening statement, appellant stated, “I want to go ahead and end this. I don’t want to bring my son in.” The State objected to appellant’s outburst, and appellant then stated, “I’m guilty. Okay.” The jury was removed from the courtroom following this outburst.
After the jury retired to the jury room, appellant’s trial counsel told the trial court that before the indictment was read, appellant told her he wanted to plead guilty. Counsel said she entered a not guilty plea because she thought appellant simply wanted to contest the culpable mental state alleged in the indictment. Appellant again told the trial court that he did not want his son to be hurt by testifying. After removing appellant from the courtroom, the trial court instructed appellant’s counsel that appellant would need to sign a judicial confession if he wanted to enter a plea of guilty. Following a recess, appellant returned to the courtroom. Outside the presence of the jury, the trial court asked appellant if he understood that by entering a plea of guilty the court would instruct the jury to find him guilty. Appellant said he understood, and the jury was brought back in. Appellant told the trial court that he wanted to change his plea. The State offered appellant’s signed judicial confession into evidence, and it was admitted without objection. The jury found appellant guilty after the trial court instructed the jury to find appellant guilty as charged in the indictment. The trial court then heard evidence as to punishment. At the conclusion of evidence, the trial court sentenced appellant to life imprisonment.
Failure to Admonish
In his first point of error, appellant contends his guilty plea was not knowing and voluntary because the trial court failed to admonish him about sex offender registration as required by article 26.13(a)(5) of the code of criminal procedure. Tex.Code Ceim. Proc. Ann. art. 26.13(a)(5) (Vernon Supp.2001). Article 26.13(a) requires a court, before accepting a plea of guilty, to admonish the defendant on the following: (1) the punishment range; (2) the fact that the prosecution’s sentencing recommendation is not binding on the court; (3) the limited right to appeal; (4) the possibility of deportation; and (5) the fact that the *794 defendant will be required to register as a sex offender pursuant to Chapter 62 of the code of criminal procedure if the defendant is convicted of, or placed on deferred adjudication for, an offense subject to that chapter. Tex.Code Crim. PROC. Ann. art. 26.13(a)(l)-(5) (Vernon Supp.2001). In 1999, article 26.13(a) was amended to include an admonishment regarding sex offender registration and became effective as amended September 1, 1999. See Act of June 19, 1999, 76th Leg., R.S., ch. 1415, § 1, subsec. (a), 1999 Tex. Gen. Laws 4831, 4832. This amendment does not contain a savings clause, so article 26.13(a)(5) applies to all cases tried on or after September 1, 1999. See Act of June 19, 1999, 76th Leg., R.S., ch. 1415, § 1, subsec. (a), 1999 Tex. Gen. Laws 4831. Because appellant was tried in February 2000, the amendment to subsection (a) was in effect when this case was tried.
Before 1997, Texas law was unsettled concerning whether a trial court’s failure to give an article 26.13 admonishment constituted reversible error. In
Whitten v. State,
After
Morales,
several intermediate appellate courts applied the “substantial compliance through immateriality” analysis to distinguish
Morales
from cases where the record affirmatively established that the defendant was a U.S. citizen.
Durst v. State,
In
Cain v. State,
But courts still consider whether those consequences are direct or collateral in determining if the voluntariness of the plea was undermined by the failure to admonish. For example, the court of criminal appeals has considered whether the defendant was made fully aware of the direct consequences of a guilty plea when determining the voluntariness of the plea.
State v. Jimenez, 987
S.W.2d 886, 888-89 (Tex.Crim.App.1999) (applying
Carranza
to a misdemeanor case and holding that an admonishment on the deportation consequences of a guilty plea is not constitutionally required). Generally, a guilty plea is considered voluntary if the defendant was made fully aware of the direct consequences of the plea.
Id.
at 888 (citing
Brady v. United States,
Applying
Carranza
and the concepts of direct versus collateral consequence to the facts of this case, we hold that the trial court’s failure to admonish appellant on the sex offender registration requirement constitutes harmless error and did not render his plea of guilty involuntary. Here, the trial court erred by failing to admonish appellant on the statutorily required sex offender registration. But appellant has failed to show that he was unaware of the consequences of his plea and that he was misled or harmed by the trial court’s admonishment. In his statement to police, appellant admitted sexually assaulting his son. Appellant told the trial court that he understood the range of punishment and understood that by pleading guilty the jury would find him guilty. He also understood the trial court would assess punishment within the applicable punishment range. Appellant twice told the trial court he wanted to change his plea to guilty. In fact, the record shows appellant wanted to plead guilty before his trial counsel entered a not guilty plea in front of the jury. Appellant clearly understood he would be found guilty and sentenced accordingly if he pleaded guilty. There is no evidence he would not have pleaded guilty if the trial court had admonished him on sex offender registration. The registration requirement did not affect the range of punishment and if appellant serves out his full life sentence, he will never be subject to the registration requirement. As such, the sex offender registration requirement was a collateral consequence of appellant’s plea and did not affect the voluntariness of that plea.
See Ruffin,
Appellant contends he was clearly unaware of the consequences of his plea because he was agitated when he changed his plea to guilty. Although the record does reflect that appellant was upset at the prospect of his son testifying, there is no evidence in the record that appellant was mentally incompetent at the time he changed his plea or in any way unaware of the consequences of pleading guilty. The voluntariness of a guilty plea is determined from the totality of the circumstances viewed in light of the entire record.
Ybarra v. State,
*797 Trial Court’s Duty to Withdraw Appellant’s Guilty Plea
In his second point of error, appellant contends the trial court erred by not
sua sponte
withdrawing his guilty plea. Specifically, appellant contends the trial court had a duty to withdraw his plea because the trial court had evidence before it raising a bona fide doubt about his mental competence. Appellant points to his statements to the trial court, such as he was tired because he had been up for sixty hours and could not think straight, as evidence of his unstable mental state. Appellant also contends the trial court’s postponement of punishment due to appellant’s “agitated state” indicates the trial court had concerns about appellant’s competency. We disagree. Unless an issue of an accused’s mental competency is raised at the time of the plea, the trial court need not inquire into the accused’s mental competency, and it is not error for the trial court to accept the plea.
Kuyava,
Appellant relies on
Conroy v. State,
For the foregoing reasons, we overrule appellant’s two points of error and affirm the trial court’s judgment.
