Merge pull request #7548 from stenzek/graphics-window-crash OGL: Fix crash when opening graphics window on another backend