We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea4d02 commit 9ae00f4Copy full SHA for 9ae00f4
src/webgl/p5.RendererGL.js
@@ -122,6 +122,7 @@ class RendererGL extends Renderer {
122
123
// Create new canvas
124
this.canvas = this.elt = elt || document.createElement('canvas');
125
+ this._setAttributeDefaults(pInst);
126
this._initContext();
127
// This redundant property is useful in reminding you that you are
128
// interacting with WebGLRenderingContext, still worth considering future removal
@@ -176,7 +177,6 @@ class RendererGL extends Renderer {
176
177
document.getElementsByTagName('main')[0].appendChild(this.elt);
178
}
179
- this._setAttributeDefaults(pInst);
180
this.isP3D = true; //lets us know we're in 3d mode
181
182
// When constructing a new Geometry, this will represent the builder
0 commit comments