File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,12 @@ class HeadlessGLKernel extends WebGLKernel {
137
137
138
138
setOutput ( output ) {
139
139
super . setOutput ( output ) ;
140
- if ( this . graphical ) {
140
+ if ( this . graphical && this . extensions . STACKGL_resize_drawingbuffer ) {
141
141
this . extensions . STACKGL_resize_drawingbuffer . resize ( this . maxTexSize [ 0 ] , this . maxTexSize [ 1 ] ) ;
142
142
}
143
143
}
144
144
}
145
145
146
146
module . exports = {
147
147
HeadlessGLKernel
148
- } ;
148
+ } ;
Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ class WebGLFunctionNode extends FunctionNode {
739
739
} ) ;
740
740
if ( i === 0 || lastType === null ) {
741
741
declarationResult . push ( 'float ' ) ;
742
- } else if ( actualType !== lastType ) {
742
+ } else if ( type !== lastType ) {
743
743
throw new Error ( 'Unhandled declaration' ) ;
744
744
} else {
745
745
declarationResult . push ( ',' ) ;
@@ -757,7 +757,7 @@ class WebGLFunctionNode extends FunctionNode {
757
757
} ) ;
758
758
if ( i === 0 || lastType === null ) {
759
759
declarationResult . push ( `${ markupType } ` ) ;
760
- } else if ( actualType !== lastType ) {
760
+ } else if ( type !== lastType ) {
761
761
result . push ( ';' ) ;
762
762
declarationResult . push ( `${ markupType } ` ) ;
763
763
} else {
@@ -1309,4 +1309,4 @@ const operatorMap = {
1309
1309
1310
1310
module . exports = {
1311
1311
WebGLFunctionNode
1312
- } ;
1312
+ } ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ function testCompilationIssue(mode) {
19
19
constants : { w : 4 , h : 4 } ,
20
20
output : [ 2 , 2 ] ,
21
21
graphical : true ,
22
- debug : true ,
23
22
} ) ;
24
23
render ( new Uint8ClampedArray ( [
25
24
230 , 233 , 240 , 255 ,
@@ -51,6 +50,6 @@ test('gpu', () => {
51
50
testCompilationIssue ( 'headlessgl' ) ;
52
51
} ) ;
53
52
54
- test ( 'cpu' , ( ) => {
53
+ ( GPU . isCanvasSupported ? test : skip ) ( 'cpu' , ( ) => {
55
54
testCompilationIssue ( 'cpu' ) ;
56
55
} ) ;
You can’t perform that action at this time.
0 commit comments