mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-01 12:15:03 -06:00
Qt: Remove Vulkan warning and OpenGL Mesa override (#1938)
This commit is contained in:
parent
49b0bef17d
commit
0862e5e98a
@ -465,24 +465,10 @@ GMainWindow::GMainWindow(Core::System& system_)
|
|||||||
|
|
||||||
#ifdef ENABLE_OPENGL
|
#ifdef ENABLE_OPENGL
|
||||||
gl_renderer = GetOpenGLRenderer();
|
gl_renderer = GetOpenGLRenderer();
|
||||||
#if defined(_WIN32)
|
|
||||||
if (gl_renderer.startsWith(QStringLiteral("D3D12"))) {
|
|
||||||
// OpenGLOn12 supports but does not yet advertise OpenGL 4.0+
|
|
||||||
// We can override the version here to allow Citra to work.
|
|
||||||
// TODO: Remove this when OpenGL 4.0+ is advertised.
|
|
||||||
qputenv("MESA_GL_VERSION_OVERRIDE", "4.6");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_VULKAN
|
#ifdef ENABLE_VULKAN
|
||||||
physical_devices = GetVulkanPhysicalDevices();
|
physical_devices = GetVulkanPhysicalDevices();
|
||||||
if (physical_devices.empty()) {
|
|
||||||
QMessageBox::warning(this, tr("No Suitable Vulkan Devices Detected"),
|
|
||||||
tr("Vulkan initialization failed during boot.<br/>"
|
|
||||||
"Your GPU may not support Vulkan 1.1, or you do not "
|
|
||||||
"have the latest graphics driver."));
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!game_path.isEmpty()) {
|
if (!game_path.isEmpty()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user