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

PhiloGL should not be globally bound to a single canvas #36

Open
D1plo1d opened this issue Feb 5, 2013 · 1 comment
Open

PhiloGL should not be globally bound to a single canvas #36

D1plo1d opened this issue Feb 5, 2013 · 1 comment

Comments

@D1plo1d
Copy link

D1plo1d commented Feb 5, 2013

It seems that PhiloGL is limited to a single instance rendering context in the moment due to it's use of the global gl object. This was not my intuition and should probably not be the case

I think we might be able to refactor the gl object to be per-instance and solve this issue but I'm still learning the PhiloGL code base. Can someone confirm if this is the case?

Use Case: my application. I need to render 2 WebGL contexts simultaneously.

See https://github.com/senchalabs/philogl/blob/master/src/core.js#L56

@D1plo1d
Copy link
Author

D1plo1d commented Feb 7, 2013

Fixed. See Pull Request: #37

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

1 participant