Skip to content

Commit 35f2312

Browse files
authored
Merge pull request #5003 from choxi/offscreen-render-bug
Fixes offscreen rendering bug
2 parents 9688687 + 4b146e4 commit 35f2312

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/core/main.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ class p5 {
166166
// PRIVATE p5 PROPERTIES AND METHODS
167167
//////////////////////////////////////////////
168168

169-
this._accessibleOutputs = {
170-
text: false,
171-
grid: false,
172-
textLabel: false,
173-
gridLabel: false
174-
};
175169
this._setupDone = false;
176170
// for handling hidpi
177171
this._pixelDensity = Math.ceil(window.devicePixelRatio) || 1;
@@ -583,6 +577,13 @@ class p5 {
583577
}
584578

585579
_initializeInstanceVariables() {
580+
this._accessibleOutputs = {
581+
text: false,
582+
grid: false,
583+
textLabel: false,
584+
gridLabel: false
585+
};
586+
586587
this._styles = [];
587588

588589
this._bezierDetail = 20;

0 commit comments

Comments
 (0)