Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 4, 2022
1 parent 92666e8 commit aa8c319
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 13 deletions.
12 changes: 11 additions & 1 deletion dist/4.x/twgl-full.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/4.x/twgl-full.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/4.x/twgl-full.min.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion dist/4.x/twgl-full.module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license twgl.js 4.23.1 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
/* @license twgl.js 4.23.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
Available via the MIT license.
see: http://github.com/greggman/twgl.js for details */
/*
Expand Down Expand Up @@ -2431,6 +2431,9 @@ function getNumElementsFromNonIndexedArrays(arrays) {
}
const array = arrays[key];
const length = getArray(array).length;
if (length === undefined) {
return 1; // There's no arrays
}
const numComponents = getNumComponents(array, key);
const numElements = length / numComponents;
if (length % numComponents > 0) {
Expand All @@ -2456,6 +2459,9 @@ function getNumElementsFromAttributes(gl, attribs) {
key = Object.keys(attribs)[0];
}
const attrib = attribs[key];
if (!attrib.buffer) {
return 1; // There's no buffer
}
gl.bindBuffer(ARRAY_BUFFER, attrib.buffer);
const numBytes = gl.getBufferParameter(ARRAY_BUFFER, BUFFER_SIZE);
gl.bindBuffer(ARRAY_BUFFER, null);
Expand Down
12 changes: 11 additions & 1 deletion dist/4.x/twgl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/4.x/twgl.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/4.x/twgl.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- this file is auto-generated from README.md. Do not edited directly -->
<!--
@license twgl.js 4.23.1 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
@license twgl.js 4.23.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
Available via the MIT license.
see: http://github.com/greggman/twgl.js for details
-->
Expand Down
12 changes: 11 additions & 1 deletion npm/base/dist/4.x/twgl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/base/dist/4.x/twgl.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion npm/base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twgl-base.js",
"version": "4.23.1",
"version": "4.23.2",
"description": "A Tiny WebGL helper library",
"main": "dist/4.x/twgl.js",
"types": "dist/4.x/twgl-full.d.ts",
Expand Down

0 comments on commit aa8c319

Please sign in to comment.