We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be575fa commit e4cbaf5Copy full SHA for e4cbaf5
1 file changed
Applications/Cube/cube.js
@@ -239,9 +239,9 @@ Graphics.prototype.resize = function (width, height) {
239
const dpr = window.devicePixelRatio || 1;
240
this.canvas.width = width * dpr;
241
this.canvas.height = height * dpr;
242
- this.gl.viewport(0, 0, width, height);
+ this.gl.viewport(0, 0, this.canvas.width, this.canvas.height);
243
// ctx.scale(dpr, dpr);
244
- this.gl.scalef(dpr, dpr);
+ if (this.gl.scale) this.gl.scale(dpr, dpr);
245
};
246
247
// export { drawScene };
0 commit comments