Skip to content

Commit a9e5bb3

Browse files
committed
pass meshShader attributes manually (shoutout to @dy)
- this fixes issues reported in #4 (comment) that seem to only appear on etpinard's thinkpad running Ubuntu 16.04
1 parent a041539 commit a9e5bb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/conemesh.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ proto.dispose = function() {
857857
}
858858

859859
function createMeshShader(gl) {
860-
var shader = createShader(gl, meshShader.vertex, meshShader.fragment)
860+
// need to pass meshShader attributes manually,
861+
// to make this work on etpinard's Ubuntu Thinkpad
862+
var shader = createShader(gl, meshShader.vertex, meshShader.fragment, null, meshShader.attributes)
861863
shader.attributes.position.location = 0
862864
shader.attributes.color.location = 2
863865
shader.attributes.uv.location = 3

0 commit comments

Comments
 (0)