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

Fix GLES3 rendering on Android studio emulator #74945

Merged
merged 1 commit into from
May 8, 2023

Conversation

ChibiDenDen
Copy link
Contributor

@ChibiDenDen ChibiDenDen commented Mar 15, 2023

Use a temporary framebuffer for screen copy from rendertarget to screen.

This solves GLES3 rendering in android studio emulator (before this change there is just a black screen)

Based on discussion in:
#74828

Bugsquad edit:

Use a temporary framebuffer for screen copy from rendertarget to screen.

This solves GLES3 rendering in android studio emulator (before this change there is just a black screen)

Based on discussion in:
godotengine#74828
@clayjohn
Copy link
Member

It is strange that the depth buffer would cause issues here as we are masking it out during the blot. But I don't see any harm in creating a temporary framebuffer to work around the issue. Creating a framebuffer isn't free, but it is relatively cheap (the cost should be about the same as just switching to another framebuffer)

@akien-mga akien-mga modified the milestones: 4.x, 4.1 May 8, 2023
@akien-mga akien-mga merged commit e370b35 into godotengine:master May 8, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga changed the title Fix gles3 rendering on android studio emulator Fix GLES3 rendering on Android studio emulator May 10, 2023
@akien-mga
Copy link
Member

Cherry-picked for 4.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GLES3 not working on android emulator + workaround
3 participants