pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.25k stars 173 forks source link

Fix support for canvas renderer #430

Closed salojoo closed 1 year ago

salojoo commented 1 year ago

Fix support for canvas renderer

Description of change

Figured out that loseContext only exists as an extension for webgl, so no point in trying to set it for canvas.

Fixes: support for canavas renderer

Pre-Merge Checklist
codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7561d3b3ca36a84f4f382a7471abe68138f2b95c:

Sandbox Source
sandbox Configuration