mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142988 - Try harder to disable Flash on Tegra devices r=droeh, a=lizzard
This commit is contained in:
parent
5da9398050
commit
ea7cbbddd8
@ -1935,7 +1935,8 @@ public class GeckoAppShell
|
|||||||
|
|
||||||
// An awful hack to detect Tegra devices. Easiest way to do it without spinning up a EGL context.
|
// An awful hack to detect Tegra devices. Easiest way to do it without spinning up a EGL context.
|
||||||
boolean isTegra = (new File("/system/lib/hw/gralloc.tegra.so")).exists() ||
|
boolean isTegra = (new File("/system/lib/hw/gralloc.tegra.so")).exists() ||
|
||||||
(new File("/system/lib/hw/gralloc.tegra3.so")).exists();
|
(new File("/system/lib/hw/gralloc.tegra3.so")).exists() ||
|
||||||
|
(new File("/sys/class/nvidia-gpu")).exists();
|
||||||
if (isTegra) {
|
if (isTegra) {
|
||||||
// disable on KitKat (bug 957694)
|
// disable on KitKat (bug 957694)
|
||||||
if (Versions.feature19Plus) {
|
if (Versions.feature19Plus) {
|
||||||
|
Loading…
Reference in New Issue
Block a user