Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/libwebgl2.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ var LibraryWebGL2 = {
program = GL.programs[program];
var vars = [];
for (var i = 0; i < count; i++)
vars.push(UTF8ToString({{{ makeGetValue('varyings', 'i*4', 'i32') }}}));
vars.push(UTF8ToString({{{ makeGetValue('varyings', 'i*' + POINTER_SIZE, '*') }}}));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any tests that cover these functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not any inside test folder as far as I can see.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, thats no bad. No testing here. We should certainly add some, but I don't think we need to block this change on that.


GLctx.transformFeedbackVaryings(program, vars, bufferMode);
},
Expand Down Expand Up @@ -519,7 +519,7 @@ var LibraryWebGL2 = {
program = GL.programs[program];
var names = [];
for (var i = 0; i < uniformCount; i++)
names.push(UTF8ToString({{{ makeGetValue('uniformNames', 'i*4', 'i32') }}}));
names.push(UTF8ToString({{{ makeGetValue('uniformNames', 'i*' + POINTER_SIZE, '*') }}}));

var result = GLctx.getUniformIndices(program, names);
if (!result) return; // GL spec: If an error is generated, nothing is written out to uniformIndices.
Expand Down