WebGL export flickers black on resizing
We are currently using a WebGL exported animation in a webpage that we want to be responsive. Out of the box the exported WebGl code doesn't seem to support this functionality so I have had to use the inbuilt setViewport and setLocalTransform functions to achieve the responsive scaling.
This works well, however it appears that the code sometimes causes the canvas to turn black and throws a heap of errors when being resized.

This is from build 18.0.0.107
[Error] WebGL: INVALID_ENUM: activeTexture: texture unit out of range
activeTexture
Df (flwebgl-0.2.min.js)
jh (flwebgl-0.2.min.js)
e (flwebgl-0.2.min.js)
Fj (flwebgl-0.2.min.js)
Cl (flwebgl-0.2.min.js)
sf (flwebgl-0.2.min.js)
[Error] WebGL: INVALID_VALUE: uniform1i: invalid texture unit
uniform1i
uniform1i (flwebgl-0.2.min.js)
Rg (flwebgl-0.2.min.js)
e (flwebgl-0.2.min.js)
e (flwebgl-0.2.min.js)
Fj (flwebgl-0.2.min.js)
Cl (flwebgl-0.2.min.js)
sf (flwebgl-0.2.min.js)
I've tried to make sure the resizing is happening before a frame is rendered and other ways to try work around the issue but nothing has worked so far.
We have tried the CreateJs export but this is far to performance intensive for our intended purpose.
The SVG export just hangs and doesn't complete not matter how long we leave it. So it would seems we are only left with the WebGL for now.
Hopefully someone can shed some light on how to resolve this.
