Intel GPU detection tweaks

This commit is contained in:
Anuken
2025-09-11 18:56:05 -04:00
parent f089e38994
commit 5f58adb764
5 changed files with 243 additions and 9 deletions

View File

@@ -52,7 +52,8 @@ public class DesktopLauncher extends ClientLauncher{
height = 700;
//on Windows, Intel drivers might be buggy with OpenGL 3.x, so only use 2.x. See https://github.com/Anuken/Mindustry/issues/11041
if(GpuDetect.isIntel){
if(GpuDetect.hasIntel && (!GpuDetect.hasAMD || !GpuDetect.hasNvidia)){
allowGl30 = false;
coreProfile = false;
glVersions = new int[][]{{2, 1}, {2, 0}};
}else if(OS.isMac){