Browse Source

Check a couple more vendor strings to determine if an AMD driver is being used.

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
68f1ab5f47
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modules/graphics/opengl/OpenGL.cpp

+ 2 - 1
src/modules/graphics/opengl/OpenGL.cpp

@@ -261,7 +261,8 @@ void OpenGL::initVendor()
 
 
 	// http://feedback.wildfiregames.com/report/opengl/feature/GL_VENDOR
 	// http://feedback.wildfiregames.com/report/opengl/feature/GL_VENDOR
 	// http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices
 	// http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices
-	if (strstr(vstr, "ATI Technologies"))
+	// http://opengl.gpuinfo.org/gl_stats_caps_single.php?listreportsbycap=GL_VENDOR
+	if (strstr(vstr, "ATI Technologies") || strstr(vstr, "AMD") || strstr(vstr, "Advanced Micro Devices"))
 		vendor = VENDOR_AMD;
 		vendor = VENDOR_AMD;
 	else if (strstr(vstr, "NVIDIA"))
 	else if (strstr(vstr, "NVIDIA"))
 		vendor = VENDOR_NVIDIA;
 		vendor = VENDOR_NVIDIA;