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 743348d commit 5c86110Copy full SHA for 5c86110
src/utils.js
@@ -105,8 +105,7 @@ export function getDrawingbufferInfo(gl) {
105
export function computeDrawingbufferSize(gl, drawingBufferInfo) {
106
// this will need to change for hi-color support
107
const {samples, depthBits, contextAttributes} = drawingBufferInfo;
108
- const {width, height} = gl.canvas;
109
- const size = width * height * 4;
+ const size = gl.drawingBufferWidth * gl.drawingBufferHeight * 4 || 0;
110
const depth = contextAttributes.depth ? 1 : 0;
111
const stencil = contextAttributes.stencil ? 1 : 0;
112
const depthSize = Math.min(stencil + depthBits > 16 ? 4 : 2, 4);
0 commit comments