mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Apply Image:replacePixels/missing text workaround to more ATI drivers
issue #1563
This commit is contained in:
@@ -160,11 +160,11 @@ bool OpenGL::initContext()
|
||||
#ifdef LOVE_WINDOWS
|
||||
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
|
||||
// GPUs / drivers.
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
* initial full-size one (determined after some investigation with an
|
||||
* affected user on Discord.)
|
||||
* https://bitbucket.org/rude/love/issues/1436/bug-with-lovegraphicsprint-on-older-ati
|
||||
*
|
||||
* https://github.com/love2d/love/issues/1563
|
||||
**/
|
||||
bool texStorageBreaksSubImage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user