Unity WebGL Rive TextureRenderer doesn't display on mesh
Environment
Unity 6000.0.40f1
rive-unity: 0.3.3-canary.80 (0.3.3 stable)
Issue confirmed occurring on Firefox, Safari & Chrome
Issue:
When attempting to render any Rive widget as a texture on a mesh through a WebGL build, it renders as a blank grey texture with the error:
OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
See build here:
https://russcork.itch.io/rive-demo
& project here:
https://github.com/ross-kirk/UnityRive
Assets/Scenes/3D.unity has been setup with the issue in question
Steps to repro
Launch the build linked above
Click 'Open 3D Demo' button in top right
Observe issue & console with errors
Notes
Have added repo in current state, feel free to let me know if it is an issue with the config or player settings.
Works correctly when built to MacOS and Windows native, seems to be WebGL rendering issue.
It looks like 0.3.3-canary.80
is about a month old. There's a 0.3.3 stable and 0.3.4-canary.55. Have you tried with those to see if you're still seeing the issue?
0.3.4-canary.58
(most recent as of today) seems to have fixed it. I will say that the tag for v0.3.3 stable on the release tags is actually 0.3.3-canary.80
in the package.json. So this issue is present in v0.3.3 stable
I'm glad that fixed it. Oh, that's really good to know it's there in stable, thanks.