Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why rive trying to call webgl2 and webgl in canvas-lite package? #355

Closed
smnfox opened this issue May 23, 2024 · 2 comments
Closed

Why rive trying to call webgl2 and webgl in canvas-lite package? #355

smnfox opened this issue May 23, 2024 · 2 comments

Comments

@smnfox
Copy link

smnfox commented May 23, 2024

Description

I use canvas-lite package and when creating new Rive instance at first it trying to use webgl context

Provide a Repro

Small example https://codepen.io/Nadezhda-Trenogina/pen/yLWJvoK?editors=1111
Click "run" and alert will be shown with called context type. And there is webgl2 and webgl, only in the end will be 2d

Expected behavior

For package canvas-lite i expected only 2d context to be used

Screenshots

image

Browser & Versions (please complete the following information)

  • Browser: Chrome 123
  • OS: macOS 13.1

Additional context

Reproduced on every my device. I saw this behaviour when tried to debug problem on old android device, that doesn`t work correctly with webgl and immediately shows error instead of animation. Now i am confused why it works this way

If described behavior is correct and there is no bug, then maybe i can somehow choose what context i want to use to avoid webgl?

@luckydye
Copy link

luckydye commented Jun 23, 2024

I also ran into this, had to downgrade to 2.7.8. Appears to be happening from 2.7.9 up.

Possibly

initGL();

@HayesGordon
Copy link
Contributor

Hi all, Rive web uses WebGL to draw image meshes for canvas.

Closing this issue as it's functionality we depend on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants