Browse Source

Apply Image:replacePixels/missing text workaround to more ATI drivers

issue #1563
Alex Szpakowski 5 years ago
parent
commit
dde3db3006
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/modules/graphics/opengl/OpenGL.cpp
  2. 1 1
      src/modules/graphics/opengl/OpenGL.h

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

@@ -160,11 +160,11 @@ bool OpenGL::initContext()
 #ifdef LOVE_WINDOWS
 #ifdef LOVE_WINDOWS
 	if (getVendor() == VENDOR_AMD)
 	if (getVendor() == VENDOR_AMD)
 	{
 	{
-		// Radeon HD drivers switched from "ATI Radeon" to "AMD Radeon" around
+		// Radeon drivers switched from "ATI Radeon" to "AMD Radeon" around
 		// the 7000 series. We'll assume this bug doesn't affect those newer
 		// the 7000 series. We'll assume this bug doesn't affect those newer
 		// GPUs / drivers.
 		// GPUs / drivers.
 		const char *device = (const char *) glGetString(GL_RENDERER);
 		const char *device = (const char *) glGetString(GL_RENDERER);
-		if (strstr(device, "ATI Radeon HD ") || strstr(device, "ATI Mobility Radeon HD"))
+		if (strstr(device, "ATI Radeon") || strstr(device, "ATI Mobility Radeon"))
 			bugs.texStorageBreaksSubImage = true;
 			bugs.texStorageBreaksSubImage = true;
 	}
 	}
 #endif
 #endif

+ 1 - 1
src/modules/graphics/opengl/OpenGL.h

@@ -165,7 +165,7 @@ public:
 		 * initial full-size one (determined after some investigation with an
 		 * initial full-size one (determined after some investigation with an
 		 * affected user on Discord.)
 		 * affected user on Discord.)
 		 * https://bitbucket.org/rude/love/issues/1436/bug-with-lovegraphicsprint-on-older-ati
 		 * https://bitbucket.org/rude/love/issues/1436/bug-with-lovegraphicsprint-on-older-ati
-		 *
+		 * https://github.com/love2d/love/issues/1563
 		 **/
 		 **/
 		bool texStorageBreaksSubImage;
 		bool texStorageBreaksSubImage;