File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ import p5 from '../core/main';
1010
1111//updates gridOutput
1212p5 . prototype . _updateGridOutput = function ( idT ) {
13+ // Check if the current rendering mode is WEBGL
14+ if ( this . _renderer && this . _renderer instanceof p5 . RendererGL ) {
15+ if ( ! this . _didOutputGridWebGLMessage ) {
16+ this . _didOutputGridWebGLMessage = true ;
17+ console . error ( 'gridOutput() does not yet work in WebGL mode.' ) ;
18+ }
19+ return ;
20+ }
1321 //if html structure is not there yet
1422 if ( ! this . dummyDOM . querySelector ( `#${ idT } _summary` ) ) {
1523 return ;
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ import p5 from '../core/main';
1010
1111//updates textOutput
1212p5 . prototype . _updateTextOutput = function ( idT ) {
13+ // Check if the current rendering mode is WEBGL
14+ if ( this . _renderer && this . _renderer instanceof p5 . RendererGL ) {
15+ if ( ! this . _didOutputTextWebGLMessage ) {
16+ this . _didOutputTextWebGLMessage = true ;
17+ console . error ( 'textOutput() does not yet work in WebGL mode.' ) ;
18+ }
19+ return ;
20+ }
1321 //if html structure is not there yet
1422 if ( ! this . dummyDOM . querySelector ( `#${ idT } _summary` ) ) {
1523 return ;
You can’t perform that action at this time.
0 commit comments