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

Gracefull failover #4

Open
llewelld opened this issue Mar 21, 2015 · 1 comment
Open

Gracefull failover #4

llewelld opened this issue Mar 21, 2015 · 1 comment
Labels

Comments

@llewelld
Copy link
Owner

On machines without shader capability shaderback.js will drop back to the usual static background. This happens because the gl context will be returned as null.

However, this fallback isn't very graceful as it generates a null context error in the Javascript. The user doesn't get to see this, but it would still be neater to catch the error and fail completely transparently.

The solution is to catch the error or check for a null context and turn off the relevant Javascript updates.

@llewelld llewelld changed the title Performance checking Gracefull failover Mar 21, 2015
@llewelld llewelld added the bug label Mar 21, 2015
@llewelld
Copy link
Owner Author

Introduced code as of 97df0be to allow graceful failover. A debug option (set using setDebug(actiive)) allows error alerts to be generated or turned off.

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

No branches or pull requests

1 participant