-
Notifications
You must be signed in to change notification settings - Fork 26
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
Shared GL Context between AWTGLCanvas possible? #16
Comments
Ah of course the befit is being able to have different frame buffer configurations for each. Maybe there could be shared context versions of the Or maybe have an |
Just set GLData.shareContext when creating a new AWTGLCanvas. The new canvas will then build a WGL/GLX share group with the given context. |
nice!! |
I see that this feature is currently windows exclusive as the |
Are you planning on supporting this on Linux as well? |
Done as of #17 |
Hi,
Currently every
AWTGLCanvas
instances have their own GL context.Because of this, I cannot share GL objects between them, e.g. I have to create the same texture for every Canvas separately, and more importantly keep track of the objects membership to the corresponding canvas and also delete them when destroying the respective canvas (even though I'm not sure whether the GL objects are deleted upon context destruction).
Is it possible that every
AWTGLCanvas
uses the same GL context so that objects can be shared easily between them?What are the benefits of having separate contexts?
The text was updated successfully, but these errors were encountered: