From 2aef5fb3e52f3f4f1170936d7e5d48c825e587ed Mon Sep 17 00:00:00 2001
From: Alexander Rose <alexander.rose@weirdbyte.de>
Date: Sun, 12 Feb 2023 09:12:24 -0800
Subject: [PATCH] fix use of WEBGL_provoking_vertex

---
 CHANGELOG.md               | 5 ++---
 src/mol-gl/webgl/compat.ts | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c55010f80..abb159b76 100644
--- a/CHANGELOG.md
+++ b/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
diff --git a/src/mol-gl/webgl/compat.ts b/src/mol-gl/webgl/compat.ts
index c490ca1e1..634849fed 100644
--- a/src/mol-gl/webgl/compat.ts
+++ b/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)
             };
         }
     }
-- 
GitLab