Skip to content

Commit

Permalink
Merge pull request #5003 from choxi/offscreen-render-bug
Browse files Browse the repository at this point in the history
Fixes offscreen rendering bug
  • Loading branch information
stalgiag authored Jan 19, 2021
2 parents 9688687 + 4b146e4 commit 35f2312
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@ class p5 {
// PRIVATE p5 PROPERTIES AND METHODS
//////////////////////////////////////////////

this._accessibleOutputs = {
text: false,
grid: false,
textLabel: false,
gridLabel: false
};
this._setupDone = false;
// for handling hidpi
this._pixelDensity = Math.ceil(window.devicePixelRatio) || 1;
Expand Down Expand Up @@ -583,6 +577,13 @@ class p5 {
}

_initializeInstanceVariables() {
this._accessibleOutputs = {
text: false,
grid: false,
textLabel: false,
gridLabel: false
};

this._styles = [];

this._bezierDetail = 20;
Expand Down

0 comments on commit 35f2312

Please sign in to comment.