Skip to content

Commit 1aadb2f

Browse files
fix: #472 build
1 parent f7a931e commit 1aadb2f

File tree

6 files changed

+28
-24
lines changed

6 files changed

+28
-24
lines changed

bin/gpu-browser-core.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* GPU Accelerated JavaScript
66
*
77
* @version 2.0.0-rc.14
8-
* @date Thu May 23 2019 18:11:32 GMT-0400 (Eastern Daylight Time)
8+
* @date Thu May 23 2019 20:48:22 GMT-0400 (Eastern Daylight Time)
99
*
1010
* @license MIT
1111
* The MIT License
@@ -1512,7 +1512,6 @@ class CPUKernel extends Kernel {
15121512
module.exports = {
15131513
CPUKernel
15141514
};
1515-
15161515
},{"../../utils":88,"../function-builder":8,"../kernel":33,"./function-node":5,"./kernel-string":6}],8:[function(require,module,exports){
15171516
class FunctionBuilder {
15181517
static fromKernel(kernel, FunctionNode, extraNodeOptions) {
@@ -4573,7 +4572,7 @@ class HeadlessGLKernel extends WebGLKernel {
45734572

45744573
setOutput(output) {
45754574
super.setOutput(output);
4576-
if (this.graphical) {
4575+
if (this.graphical && this.extensions.STACKGL_resize_drawingbuffer) {
45774576
this.extensions.STACKGL_resize_drawingbuffer.resize(this.maxTexSize[0], this.maxTexSize[1]);
45784577
}
45794578
}
@@ -4582,6 +4581,7 @@ class HeadlessGLKernel extends WebGLKernel {
45824581
module.exports = {
45834582
HeadlessGLKernel
45844583
};
4584+
45854585
},{"../gl/kernel-string":10,"../web-gl/kernel":55,"gl":2}],32:[function(require,module,exports){
45864586
const { utils } = require('../utils');
45874587

@@ -5881,7 +5881,7 @@ class WebGLFunctionNode extends FunctionNode {
58815881
});
58825882
if (i === 0 || lastType === null) {
58835883
declarationResult.push('float ');
5884-
} else if (actualType !== lastType) {
5884+
} else if (type !== lastType) {
58855885
throw new Error('Unhandled declaration');
58865886
} else {
58875887
declarationResult.push(',');
@@ -5899,7 +5899,7 @@ class WebGLFunctionNode extends FunctionNode {
58995899
});
59005900
if (i === 0 || lastType === null) {
59015901
declarationResult.push(`${markupType} `);
5902-
} else if (actualType !== lastType) {
5902+
} else if (type !== lastType) {
59035903
result.push(';');
59045904
declarationResult.push(`${markupType} `);
59055905
} else {
@@ -6405,6 +6405,7 @@ const operatorMap = {
64056405
module.exports = {
64066406
WebGLFunctionNode
64076407
};
6408+
64086409
},{"../function-node":9}],36:[function(require,module,exports){
64096410
const { WebGLKernelValueBoolean } = require('./kernel-value/boolean');
64106411
const { WebGLKernelValueFloat } = require('./kernel-value/float');

bin/gpu-browser-core.min.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* GPU Accelerated JavaScript
66
*
77
* @version 2.0.0-rc.14
8-
* @date Thu May 23 2019 18:11:34 GMT-0400 (Eastern Daylight Time)
8+
* @date Thu May 23 2019 20:48:24 GMT-0400 (Eastern Daylight Time)
99
*
1010
* @license MIT
1111
* The MIT License
@@ -18,7 +18,7 @@
1818
* GPU Accelerated JavaScript
1919
*
2020
* @version 2.0.0-rc.14
21-
* @date Thu May 23 2019 18:11:32 GMT-0400 (Eastern Daylight Time)
21+
* @date Thu May 23 2019 20:48:22 GMT-0400 (Eastern Daylight Time)
2222
*
2323
* @license MIT
2424
* The MIT License
@@ -1525,7 +1525,6 @@ class CPUKernel extends Kernel {
15251525
module.exports = {
15261526
CPUKernel
15271527
};
1528-
15291528
},{"../../utils":88,"../function-builder":8,"../kernel":33,"./function-node":5,"./kernel-string":6}],8:[function(require,module,exports){
15301529
class FunctionBuilder {
15311530
static fromKernel(kernel, FunctionNode, extraNodeOptions) {
@@ -4586,7 +4585,7 @@ class HeadlessGLKernel extends WebGLKernel {
45864585

45874586
setOutput(output) {
45884587
super.setOutput(output);
4589-
if (this.graphical) {
4588+
if (this.graphical && this.extensions.STACKGL_resize_drawingbuffer) {
45904589
this.extensions.STACKGL_resize_drawingbuffer.resize(this.maxTexSize[0], this.maxTexSize[1]);
45914590
}
45924591
}
@@ -4595,6 +4594,7 @@ class HeadlessGLKernel extends WebGLKernel {
45954594
module.exports = {
45964595
HeadlessGLKernel
45974596
};
4597+
45984598
},{"../gl/kernel-string":10,"../web-gl/kernel":55,"gl":2}],32:[function(require,module,exports){
45994599
const { utils } = require('../utils');
46004600

@@ -5894,7 +5894,7 @@ class WebGLFunctionNode extends FunctionNode {
58945894
});
58955895
if (i === 0 || lastType === null) {
58965896
declarationResult.push('float ');
5897-
} else if (actualType !== lastType) {
5897+
} else if (type !== lastType) {
58985898
throw new Error('Unhandled declaration');
58995899
} else {
59005900
declarationResult.push(',');
@@ -5912,7 +5912,7 @@ class WebGLFunctionNode extends FunctionNode {
59125912
});
59135913
if (i === 0 || lastType === null) {
59145914
declarationResult.push(`${markupType} `);
5915-
} else if (actualType !== lastType) {
5915+
} else if (type !== lastType) {
59165916
result.push(';');
59175917
declarationResult.push(`${markupType} `);
59185918
} else {
@@ -6418,6 +6418,7 @@ const operatorMap = {
64186418
module.exports = {
64196419
WebGLFunctionNode
64206420
};
6421+
64216422
},{"../function-node":9}],36:[function(require,module,exports){
64226423
const { WebGLKernelValueBoolean } = require('./kernel-value/boolean');
64236424
const { WebGLKernelValueFloat } = require('./kernel-value/float');

bin/gpu-browser.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* GPU Accelerated JavaScript
66
*
77
* @version 2.0.0-rc.14
8-
* @date Thu May 23 2019 18:11:32 GMT-0400 (Eastern Daylight Time)
8+
* @date Thu May 23 2019 20:48:22 GMT-0400 (Eastern Daylight Time)
99
*
1010
* @license MIT
1111
* The MIT License
@@ -6276,7 +6276,6 @@ class CPUKernel extends Kernel {
62766276
module.exports = {
62776277
CPUKernel
62786278
};
6279-
62806279
},{"../../utils":89,"../function-builder":9,"../kernel":34,"./function-node":6,"./kernel-string":7}],9:[function(require,module,exports){
62816280
class FunctionBuilder {
62826281
static fromKernel(kernel, FunctionNode, extraNodeOptions) {
@@ -9337,7 +9336,7 @@ class HeadlessGLKernel extends WebGLKernel {
93379336

93389337
setOutput(output) {
93399338
super.setOutput(output);
9340-
if (this.graphical) {
9339+
if (this.graphical && this.extensions.STACKGL_resize_drawingbuffer) {
93419340
this.extensions.STACKGL_resize_drawingbuffer.resize(this.maxTexSize[0], this.maxTexSize[1]);
93429341
}
93439342
}
@@ -9346,6 +9345,7 @@ class HeadlessGLKernel extends WebGLKernel {
93469345
module.exports = {
93479346
HeadlessGLKernel
93489347
};
9348+
93499349
},{"../gl/kernel-string":11,"../web-gl/kernel":56,"gl":3}],33:[function(require,module,exports){
93509350
const { utils } = require('../utils');
93519351

@@ -10645,7 +10645,7 @@ class WebGLFunctionNode extends FunctionNode {
1064510645
});
1064610646
if (i === 0 || lastType === null) {
1064710647
declarationResult.push('float ');
10648-
} else if (actualType !== lastType) {
10648+
} else if (type !== lastType) {
1064910649
throw new Error('Unhandled declaration');
1065010650
} else {
1065110651
declarationResult.push(',');
@@ -10663,7 +10663,7 @@ class WebGLFunctionNode extends FunctionNode {
1066310663
});
1066410664
if (i === 0 || lastType === null) {
1066510665
declarationResult.push(`${markupType} `);
10666-
} else if (actualType !== lastType) {
10666+
} else if (type !== lastType) {
1066710667
result.push(';');
1066810668
declarationResult.push(`${markupType} `);
1066910669
} else {
@@ -11169,6 +11169,7 @@ const operatorMap = {
1116911169
module.exports = {
1117011170
WebGLFunctionNode
1117111171
};
11172+
1117211173
},{"../function-node":10}],37:[function(require,module,exports){
1117311174
const { WebGLKernelValueBoolean } = require('./kernel-value/boolean');
1117411175
const { WebGLKernelValueFloat } = require('./kernel-value/float');

bin/gpu-browser.min.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* GPU Accelerated JavaScript
66
*
77
* @version 2.0.0-rc.14
8-
* @date Thu May 23 2019 18:11:34 GMT-0400 (Eastern Daylight Time)
8+
* @date Thu May 23 2019 20:48:24 GMT-0400 (Eastern Daylight Time)
99
*
1010
* @license MIT
1111
* The MIT License
@@ -18,7 +18,7 @@
1818
* GPU Accelerated JavaScript
1919
*
2020
* @version 2.0.0-rc.14
21-
* @date Thu May 23 2019 18:11:32 GMT-0400 (Eastern Daylight Time)
21+
* @date Thu May 23 2019 20:48:22 GMT-0400 (Eastern Daylight Time)
2222
*
2323
* @license MIT
2424
* The MIT License
@@ -6289,7 +6289,6 @@ class CPUKernel extends Kernel {
62896289
module.exports = {
62906290
CPUKernel
62916291
};
6292-
62936292
},{"../../utils":89,"../function-builder":9,"../kernel":34,"./function-node":6,"./kernel-string":7}],9:[function(require,module,exports){
62946293
class FunctionBuilder {
62956294
static fromKernel(kernel, FunctionNode, extraNodeOptions) {
@@ -9350,7 +9349,7 @@ class HeadlessGLKernel extends WebGLKernel {
93509349

93519350
setOutput(output) {
93529351
super.setOutput(output);
9353-
if (this.graphical) {
9352+
if (this.graphical && this.extensions.STACKGL_resize_drawingbuffer) {
93549353
this.extensions.STACKGL_resize_drawingbuffer.resize(this.maxTexSize[0], this.maxTexSize[1]);
93559354
}
93569355
}
@@ -9359,6 +9358,7 @@ class HeadlessGLKernel extends WebGLKernel {
93599358
module.exports = {
93609359
HeadlessGLKernel
93619360
};
9361+
93629362
},{"../gl/kernel-string":11,"../web-gl/kernel":56,"gl":3}],33:[function(require,module,exports){
93639363
const { utils } = require('../utils');
93649364

@@ -10658,7 +10658,7 @@ class WebGLFunctionNode extends FunctionNode {
1065810658
});
1065910659
if (i === 0 || lastType === null) {
1066010660
declarationResult.push('float ');
10661-
} else if (actualType !== lastType) {
10661+
} else if (type !== lastType) {
1066210662
throw new Error('Unhandled declaration');
1066310663
} else {
1066410664
declarationResult.push(',');
@@ -10676,7 +10676,7 @@ class WebGLFunctionNode extends FunctionNode {
1067610676
});
1067710677
if (i === 0 || lastType === null) {
1067810678
declarationResult.push(`${markupType} `);
10679-
} else if (actualType !== lastType) {
10679+
} else if (type !== lastType) {
1068010680
result.push(';');
1068110681
declarationResult.push(`${markupType} `);
1068210682
} else {
@@ -11182,6 +11182,7 @@ const operatorMap = {
1118211182
module.exports = {
1118311183
WebGLFunctionNode
1118411184
};
11185+
1118511186
},{"../function-node":10}],37:[function(require,module,exports){
1118611187
const { WebGLKernelValueBoolean } = require('./kernel-value/boolean');
1118711188
const { WebGLKernelValueFloat } = require('./kernel-value/float');

src/backend/headless-gl/kernel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ class HeadlessGLKernel extends WebGLKernel {
145145

146146
module.exports = {
147147
HeadlessGLKernel
148-
};
148+
};

src/backend/web-gl/function-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,4 +1309,4 @@ const operatorMap = {
13091309

13101310
module.exports = {
13111311
WebGLFunctionNode
1312-
};
1312+
};

0 commit comments

Comments
 (0)