Browse Source

fix use of WEBGL_provoking_vertex

Alexander Rose 2 years ago
parent
commit
2aef5fb3e5
2 changed files with 3 additions and 4 deletions
  1. 2 3
      CHANGELOG.md
  2. 1 1
      src/mol-gl/webgl/compat.ts

+ 2 - 3
CHANGELOG.md

@@ -10,7 +10,7 @@ Note that since we don't clearly distinguish between a public and private interf
 - Remove pca transform from components ui focus (too distracting)
 - Fix artefacts with opaque outlines behind transparent objects
 - Fix polymer trace visual not updating
-
+- Fix use of `WEBGL_provoking_vertex`
 
 ## [v3.31.1] - 2023-02-05
 
@@ -19,8 +19,7 @@ Note that since we don't clearly distinguish between a public and private interf
     - The average position of the residues of the first chain should be in the first quadrant if there is more than one chain
 - Add `HeadlessPluginContext` and `HeadlessScreenshotHelper` to be used in Node.js
 - Add example `image-renderer`
-- Fix wrong offset when rendering text with orthographic projectio
-n
+- Fix wrong offset when rendering text with orthographic projection
 - Update camera/handle helper when `devicePixelRatio` changes
 - Add various options to customize the axes camera-helper
 - Fix issue with texture-mesh color smoothing when changing themes

+ 1 - 1
src/mol-gl/webgl/compat.ts

@@ -541,7 +541,7 @@ export function getProvokingVertex(gl: GLRenderingContext): COMPAT_provoking_ver
                 FIRST_VERTEX_CONVENTION: ext.FIRST_VERTEX_CONVENTION_WEBGL,
                 LAST_VERTEX_CONVENTION: ext.LAST_VERTEX_CONVENTION_WEBGL,
                 PROVOKING_VERTEX: ext.PROVOKING_VERTEX_WEBGL,
-                provokingVertex: ext.provokingVertexWEBGL.bind(gl)
+                provokingVertex: ext.provokingVertexWEBGL.bind(ext)
             };
         }
     }