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

Use shared GL context for all FBOCanvases #7

Closed
hageldave opened this issue Jun 12, 2019 · 1 comment
Closed

Use shared GL context for all FBOCanvases #7

hageldave opened this issue Jun 12, 2019 · 1 comment

Comments

@hageldave
Copy link
Owner

As was pointed out here, AWTGLCanvas can use a shared GL context so that GL resources can be shared among Canvases.
Due to a misconception (and poor research) on my part the FBOCanvas features an id that is accessible during render which is used by CharacterAtlas to return the correct atlas for a context.

This should be ditched and instead all FBOCanvases should share the same context.
This also allows for the shaders to be created only once.

@hageldave
Copy link
Owner Author

Did some first refactorings on a side branch bcbde6b
but have to wait until gl context sharing is officially supported by lwjgl3-awt.

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