Browse Source

prefer WebGL1 for more Safari versions

-avoid broken GPU surfaces rendering
Alexander Rose 2 years ago
parent
commit
e697624064
2 changed files with 7 additions and 2 deletions
  1. 1 0
      CHANGELOG.md
  2. 6 2
      src/mol-plugin/features.ts

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@ Note that since we don't clearly distinguish between a public and private interf
     - Change the lookup logic of NtC steps from residues
 - Add support for download of gzipped files
 - Fix Glycam Saccharide Names used by default
+- Prefer WebGL1 for more Safari versions to avoid broken GPU surfaces rendering
 
 ## [v3.13.0] - 2022-07-24
 

+ 6 - 2
src/mol-plugin/features.ts

@@ -1,7 +1,8 @@
 /**
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2021-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author David Sehnal <david.sehnal@gmail.com>
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
  */
 
 export const PluginFeatureDetection = {
@@ -13,7 +14,10 @@ export const PluginFeatureDetection = {
         const unpportedSafariVersions = [
             'Version/15.1 Safari',
             'Version/15.2 Safari',
-            'Version/15.3 Safari'
+            'Version/15.3 Safari',
+            // the following 'only' break GPU surfaces
+            'Version/15.4 Safari',
+            'Version/15.5 Safari'
         ];
         if (unpportedSafariVersions.some(v => navigator.userAgent.indexOf(v) > 0)) {
             return true;