I solved the problem. AMD broke some 3D aspects of Godot in an August driver update. I updated to 25.9.2 and now it doesn't happen anymore.