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

[GL] Android emulator support #3592

Merged
merged 1 commit into from Jan 16, 2021
Merged

Conversation

Gordon-F
Copy link
Contributor

PR checklist:

  • tested examples with the following backends: OpenGL ES

Android emulator doesn't support EGL_KHR_surfaceless_context.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

src/backend/gl/src/window/egl.rs Outdated Show resolved Hide resolved
src/backend/gl/src/window/egl.rs Outdated Show resolved Hide resolved
src/backend/gl/src/window/egl.rs Show resolved Hide resolved
@Gordon-F
Copy link
Contributor Author

@kvark I think I fixed all suggestions. Thank you for reviewing!

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks wonderful, just one small nit left!

.make_current(inner.display, None, None, Some(inner.context))
.unwrap();
if let Some(pbuffer) = inner.pbuffer {
inner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we actually need this if? couldn't we just pass make_current(inner.display, inner.pbuffer, inner.pbuffer, ..) right away?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed if and checked on the emulator and device. Everything is working fine.

src/backend/gl/src/window/egl.rs Outdated Show resolved Hide resolved
@kvark
Copy link
Member

kvark commented Jan 16, 2021 via email

@bors
Copy link
Contributor

bors bot commented Jan 16, 2021

@bors bors bot merged commit cda1b3d into gfx-rs:master Jan 16, 2021
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

2 participants