Export to GitHub

webglsamples - issue #3

global reference to "gl" in programs.js


Posted on Oct 26, 2010 by Helpful Ox

See line 151 of tdl/programs.js -

var program = loadProgram(gl, vertexShader, fragmentShader);

The function parameter "gl" is only available from a global scope.

So tdl.programs.loadProgram and tdl.programs.Program probably need to have a gl function parameter added ?

Comment #1

Posted on Oct 26, 2010 by Helpful Ox

Actually there are more instances of this in other modules. Is it expected that gl be global ?

Comment #2

Posted on Jun 4, 2014 by Swift Cat

yes

Status: WontFix

Labels:
Type-Defect Priority-Medium