From 637f8f9f1c95a19ad4f0995dca2b16af65c95b83 Mon Sep 17 00:00:00 2001 From: z0z0z Date: Sat, 11 May 2019 17:33:14 +0000 Subject: [PATCH] Fix Linux --- src/yuzu/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e33e3aaaf5..4087c78c2a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2129,6 +2129,11 @@ int main(int argc, char* argv[]) { // generating shaders setlocale(LC_ALL, "C"); + // Environment variables +#ifdef __linux__ + setenv("MESA_GL_VERSION_OVERRIDE", "4.5COMPAT", 0); +#endif + GMainWindow main_window; // After settings have been loaded by GMainWindow, apply the filter main_window.show();