[Webkit-unassigned] [Bug 219023] Blank glReadPixels since iOS 14.2
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 14 03:34:40 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=219023
--- Comment #3 from paul at sketchfab.com ---
1) is it reading the default Framebuffer or user-defined Framebuffer?
It's user defined
2) What format is the texture attachment? Does the texture attachment have alpha?
yes
3) Anything out-of-ordinary with the framebuffer?
Nothing special RGBA unsigned byte buffer it is.
We go extra length to make sure the render is finished. (gl finisht etc.)
```
var canvasPixels = new Uint8Array(4 * width * height);
var status = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
if (status !== gl.FRAMEBUFFER_COMPLETE) {
return console.error('FRAMEBUFFER status invalid.', status);
}
gl.flush();
gl.finish();
gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, canvasPixels);
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201214/8dd65da7/attachment.htm>
More information about the webkit-unassigned
mailing list