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

Add call to egl.bind_api in example in README.md #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

invpt
Copy link

@invpt invpt commented Jan 17, 2024

The sample code in the README sets the context attributes to use the OpenGL 4.0 core profile, but by default this will give a BadMatch error, because the default API is OpenGL ES, which has a maximum version of 3.2 and I believe also does not allow requesting the core profile.

Adding egl.bind_api(egl::OPENGL_API) before the call to create_context makes sure that this error does not occur.

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

Successfully merging this pull request may close these issues.

None yet

1 participant