Bug 198039 - [Mac] gl.clear() does not clear, when rendering into a texture on Radeon Pro 560
Summary: [Mac] gl.clear() does not clear, when rendering into a texture on Radeon Pro 560
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-05-20 06:55 PDT by Ivan Kuckir
Modified: 2019-05-20 17:23 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Kuckir 2019-05-20 06:55:55 PDT
Hi,

I am the creator of Photopea.com and a user reported a bug in Safari, Radeon Pro 560 4 GB, described here: https://github.com/photopea/photopea/issues/1365

I don't have a Mac OS device to be able to test it, or prepare a reduced case. But my guess is, that this code 

gl.colorMask(true,true,true,true);
gl.clearColor(0,0,0,0);
gl.clear(gl.COLOR_BUFFER_BIT);
gl.colorMask(true, true, true, true);

doesn't clear the texture, when rendering into a texture. Could you try it out?

Or go to www.Photopea.com and open any image (JPG, PNG ...). Choose a Rectangle Select tool (in the toolbar on the left) and draw a rectangle. Now, press Ctrl+D (Deselect), the rectangle should disappear. Check what WebGL commands are done after pressing Ctrl+D - that is where the bug occurs.
Comment 1 Radar WebKit Bug Importer 2019-05-20 17:23:11 PDT
<rdar://problem/50967741>