mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-27 06:29:19 +00:00
All the Broken Adrenos!
This commit is contained in:
parent
871762975a
commit
9b56050c1e
@ -551,10 +551,19 @@ static void _gldriver_setup_hackarounds(void) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
regex_t twoHundredXXRegex = { 0 };
|
||||||
|
err = regcomp(&twoHundredXXRegex, "2[2-9][0-9]", REG_ICASE|REG_NOSUB|REG_EXTENDED);
|
||||||
|
if (err) {
|
||||||
|
LOG("Cannot compile regex : %d", err);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
int found200 = !regexec(&twoHundredRegex, renderer, /*nmatch:*/0, /*pmatch:*/NULL, /*eflags:*/0);
|
int found200 = !regexec(&twoHundredRegex, renderer, /*nmatch:*/0, /*pmatch:*/NULL, /*eflags:*/0);
|
||||||
int found205 = !regexec(&twoHundredFiveRegex, renderer, /*nmatch:*/0, /*pmatch:*/NULL, /*eflags:*/0);
|
int found205 = !regexec(&twoHundredFiveRegex, renderer, /*nmatch:*/0, /*pmatch:*/NULL, /*eflags:*/0);
|
||||||
|
int found2XX = !regexec(&twoHundredXXRegex, renderer, /*nmatch:*/0, /*pmatch:*/NULL, /*eflags:*/0);
|
||||||
regfree(&twoHundredRegex);
|
regfree(&twoHundredRegex);
|
||||||
regfree(&twoHundredFiveRegex);
|
regfree(&twoHundredFiveRegex);
|
||||||
|
regfree(&twoHundredXXRegex);
|
||||||
|
|
||||||
if (found200) {
|
if (found200) {
|
||||||
LOG("HACKING AROUND BROKEN ADRENO 200");
|
LOG("HACKING AROUND BROKEN ADRENO 200");
|
||||||
@ -567,6 +576,11 @@ static void _gldriver_setup_hackarounds(void) {
|
|||||||
hackAroundBrokenAdreno205 = true;
|
hackAroundBrokenAdreno205 = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (found2XX) {
|
||||||
|
LOG("HACKING AROUND BROKEN ADRENO 2XX");
|
||||||
|
hackAroundBrokenAdreno200 = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
} while (0);
|
} while (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user