mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +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
|
#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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user