Skip to content

Prefer OpenGL over OpenGL ES #5481

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

Closed
valaphee opened this issue Apr 3, 2024 · 0 comments · Fixed by #5482
Closed

Prefer OpenGL over OpenGL ES #5481

valaphee opened this issue Apr 3, 2024 · 0 comments · Fixed by #5482

Comments

@valaphee
Copy link
Contributor

valaphee commented Apr 3, 2024

Is your feature request related to a problem? Please describe.
While working with features which are only present on OpenGL, but not ES, I wondered why OpenGL ES was used on my desktop PC. This also seems to only be the case on Linux, as on Windows OpenGL is used.

After looking up how OpenGL profiles work, I found that egl.bind_api(khronos_egl::OPENGL_ES_API).unwrap(); in https://github.com/gfx-rs/wgpu/blob/trunk/wgpu-hal/src/gles/egl.rs#L529 is called.

Describe the solution you'd like
Changing khronos_egl::OPENGL_ES_API to khronos_egl::OPENGL_API. But I don't know if there are any implications with it. According to the documentation if this operation fails the rendering api will not be changed. (therefore the default OPENGL_ES_API will be used)

Describe alternatives you've considered

Additional context

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 a pull request may close this issue.

1 participant