early-access version 2162

This commit is contained in:
pineappleEA 2021-10-29 02:37:03 +02:00
parent 4350036d17
commit 29f91e4986
3 changed files with 16 additions and 5 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access
=============
This is the source code for early-access 2161.
This is the source code for early-access 2162.
## Legal Notice

View file

@ -181,6 +181,21 @@ Device::Device() {
LOG_ERROR(Render_OpenGL, "Assembly shaders enabled but not supported");
shader_backend = Settings::ShaderBackend::GLSL;
}
if (shader_backend == Settings::ShaderBackend::GLSL && is_nvidia &&
!Settings::values.renderer_debug) {
const std::string_view driver_version = version.substr(13);
const int version_major =
std::atoi(driver_version.substr(0, driver_version.find(".")).data());
if (version_major >= 495 && version_major <= 496) {
LOG_WARNING(Render_OpenGL, "NVIDIA drivers 495 through 496 causes significant problems "
"with yuzu. Forcing GLASM as a mitigation.");
shader_backend = Settings::ShaderBackend::GLASM;
use_assembly_shaders = true;
}
}
// Blocks AMD and Intel OpenGL drivers on Windows from using asynchronous shader compilation.
use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue() &&
!(is_amd || (is_intel && !is_linux));

View file

@ -372,10 +372,6 @@ GMainWindow::~GMainWindow() {
if (render_window->parent() == nullptr) {
delete render_window;
}
#if defined(HAVE_SDL2) && !defined(_WIN32)
SDL_QuitSubSystem(SDL_INIT_VIDEO);
#endif
}
void GMainWindow::RegisterMetaTypes() {