Bug 170341 - readPixels generates INVALID_ENUM for RGBA/UNSIGNED_BYTE
Summary: readPixels generates INVALID_ENUM for RGBA/UNSIGNED_BYTE
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 10
Hardware: Macintosh macOS 10.12
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-31 08:31 PDT by Kirill S. Dmitrenko
Modified: 2017-04-01 21:47 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill S. Dmitrenko 2017-03-31 08:31:29 PDT
Here's code to reproduce: http://jsbin.com/jemafubamo/edit?js,console,output

Expected both reads to be OK:

0
true
0
true

But in both Safari and Safari TP second one fails:

0
true
1280
false
Comment 1 Radar WebKit Bug Importer 2017-04-01 21:47:02 PDT
<rdar://problem/31391650>