Explorar el Código

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.
Richard Stanway hace 8 años
padre
commit
67e5f6c54e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      UI/window-basic-settings.cpp

+ 1 - 1
UI/window-basic-settings.cpp

@@ -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));