i had something similar happen to me twice recently, and i wanted to play minecraft java but opengl had a problem, so i went on a discord and got some help, and thankfully i got minecraft working again. i think what happened is that my amd software didn't update from my computer crashing, so i just redownloaded the software and restarted my computer after it was done finishing redownloading. so maybe it might work for u?