Skia WEBGL multiple surfaces bug

67 views
Skip to first unread message

Birat Thapa

unread,
Apr 26, 2022, 7:35:04 AM4/26/22
to skia-discuss
I have come across a problem using 2 WEBGL surfaces. When I try to drawImage from one WEBGL(GPU) and one SW(CPU), it draws as expected in both canvas.

However, when I try to drawImage from one WEBGL surface to another WEBGL surface it does not draw. 

I have replicated the code below.
2 WEBGL: 
1 WEBGL 1 SW: 

The code above are identical except for the MakeSWCanvasSurface() creation. If you cannot see the second canvas, please scroll.

Why does drawImage from one WEBGL to another WEBGL not work but WEBGL to SW work?

Reply all
Reply to author
Forward
0 new messages