UI: Continue to show OpenGL if already in use

Otherwise the user can't actually switch back to Direct3D since the
settings panel doesn't consider the renderer to be modified.
master
Richard Stanway 2017-04-10 16:53:28 +02:00
parent fdc9c47875
commit 67e5f6c54e
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 1 additions and 1 deletions

View File

@ -1041,7 +1041,7 @@ void OBSBasicSettings::LoadRendererList()
"Renderer");
ui->renderer->addItem(QT_UTF8("Direct3D 11"));
if (opt_allow_opengl)
if (opt_allow_opengl || strcmp(renderer, "OpenGL") == 0)
ui->renderer->addItem(QT_UTF8("OpenGL"));
int idx = ui->renderer->findText(QT_UTF8(renderer));