I had a similar situation yesterday, albeit not with 26.04, but the previous version. After a regular update it reverted to software rendering. What fixed it was selecting the non-open Nvidia driver with “sudo software-properties-qt”. Initially the options were greyed out, this was fixed by removing all old Nvidia drivers, and then “sudo ubuntu-drivers install”. The default open driver stopped working for some reason.
I had a similar situation yesterday, albeit not with 26.04, but the previous version. After a regular update it reverted to software rendering. What fixed it was selecting the non-open Nvidia driver with “sudo software-properties-qt”. Initially the options were greyed out, this was fixed by removing all old Nvidia drivers, and then “sudo ubuntu-drivers install”. The default open driver stopped working for some reason.