Skip to content

GLES3: Fix iOS Simulator by removing incorrect system_fbo overwrite#84955

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
migeran:fix_opengl_on_ios
Nov 16, 2023
Merged

GLES3: Fix iOS Simulator by removing incorrect system_fbo overwrite#84955
akien-mga merged 1 commit intogodotengine:masterfrom
migeran:fix_opengl_on_ios

Conversation

@kisg
Copy link
Contributor

@kisg kisg commented Nov 16, 2023

The system_fbo static field is already initialized to zero, it should not be initialized again, when a TextureStorage instance is created, because it interferes with the iOS OpenGL initialization (see platform/ios/display_layer.mm).

This change fixes the OpenGL backend for the iOS Simulator and iOS devices.

Developed by Migeran, sponsored by Smirk Software.

Fixes #82917

@kisg kisg requested a review from a team as a code owner November 16, 2023 01:08
@kisg kisg changed the title Fix iOS Simulator by Removing Incorrect system_fbo Overwrite Fix iOS Simulator by removing incorrect system_fbo overwrite Nov 16, 2023
Copy link
Contributor

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

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

This makes perfect sense

@bruvzg bruvzg added this to the 4.2 milestone Nov 16, 2023
@akien-mga akien-mga changed the title Fix iOS Simulator by removing incorrect system_fbo overwrite Fix iOS Simulator by removing incorrect system_fbo overwrite Nov 16, 2023
@akien-mga akien-mga merged commit ce9901e into godotengine:master Nov 16, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga changed the title Fix iOS Simulator by removing incorrect system_fbo overwrite GLES3: Fix iOS Simulator by removing incorrect system_fbo overwrite Nov 17, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.4.

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.

iOS Simulator with opengles3 backend does not render due to glBlitFramebuffer returning GL_INVALID_FRAMEBUFFER_OPERATION

6 participants