Skip to content

Commit

Permalink
Merge pull request #336 from gpujs/335-missing-z-index-issue
Browse files Browse the repository at this point in the history
Fix 335 by checking `output` setting at build time.
  • Loading branch information
robertleeplummerjr authored Jul 4, 2018
2 parents b093d58 + efdc14a commit c75397d
Show file tree
Hide file tree
Showing 22 changed files with 148 additions and 25 deletions.
15 changes: 13 additions & 2 deletions bin/gpu-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* GPU Accelerated JavaScript
*
* @version 1.4.10
* @date Tue Jul 03 2018 16:23:43 GMT-0400 (EDT)
* @version 1.4.11
* @date Wed Jul 04 2018 15:50:38 GMT-0400 (EDT)
*
* @license MIT
* The MIT License
Expand Down Expand Up @@ -189,6 +189,17 @@ var UtilsCore = function () {

return canvasObj.getContext('webgl2', UtilsCore.initWebGlDefaultOptions());
}


}, {
key: 'checkOutput',
value: function checkOutput(output) {
for (var i = 0; i < output.length; i++) {
if (isNaN(output[i]) || output[i] < 1) {
throw new Error('kernel.output[' + i + '] incorrectly defined as `' + output[i] + '`, needs to be numeric, and greater than 0');
}
}
}
}]);

return UtilsCore;
Expand Down
6 changes: 3 additions & 3 deletions bin/gpu-core.min.js

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

Loading

0 comments on commit c75397d

Please sign in to comment.