summaryrefslogtreecommitdiff
path: root/frontends/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-09 14:32:43 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-07-09 14:32:43 +0100
commitbb87d63f0299df524c861e523f22ee6efb17af4c (patch)
tree71c651f834430b2b3af038fd23fb17bbcb805bcc /frontends/amiga
parent7fe13d5afada707cd2f7fd6e33d288bef3383474 (diff)
downloadnetsurf-bb87d63f0299df524c861e523f22ee6efb17af4c.tar.gz
netsurf-bb87d63f0299df524c861e523f22ee6efb17af4c.tar.bz2
Force disable libjpeg-turbo's use of AltiVec if we don't have it
NB: This var must be set when NetSurf is launched. The in-program setting is just a precaution in case the install script isn't run
Diffstat (limited to 'frontends/amiga')
-rwxr-xr-xfrontends/amiga/dist/Install10
-rw-r--r--frontends/amiga/gui.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/frontends/amiga/dist/Install b/frontends/amiga/dist/Install
index e8d9d0ed7..55631905e 100755
--- a/frontends/amiga/dist/Install
+++ b/frontends/amiga/dist/Install
@@ -289,6 +289,16 @@
(complete 75)
+; Force disable use of AltiVec if we don't have it
+(if (database "vectorunit" "0")
+ (
+ (textfile
+ (dest "ENVARC:JSIMD_FORCENONE")
+ (append "1")
+ )
+ )
+)
+
(if (= (exists "ENVARC:Sys/def_css.info") 0)
(copyfiles
(prompt "Copying default CSS icon")
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 688aa59da..63a240656 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -5553,7 +5553,7 @@ int main(int argc, char** argv)
LOG("AltiVec detected");
} else {
LOG("AltiVec NOT detected");
- SetVar("JSIMD_FORCENONE", "1", 1, GVF_LOCAL_ONLY);
+ SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
}
#endif