Bug 170341

Summary: readPixels generates INVALID_ENUM for RGBA/UNSIGNED_BYTE
Product: WebKit Reporter: Kirill S. Dmitrenko <kdmitrenko>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: dino, jonlee, mail, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 10   
Hardware: Mac   
OS: macOS 10.12   

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>