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

Fixed setting our system_fbo framebuffer #9823

Merged

Conversation

BastiaanOlij
Copy link
Contributor

system_fbo was being assigned before visual_server->init() was called, the result was that it got cleared.

Also set_base_framebuffer copied the global gl_view_base_fb which hasn't been set yet when it gets called. I think its obsolete anyway because the iOS framebuffer gets created before init() is called on visual server.

Note that this whole thing should be re-examined. It creates and destroys the iOS framebuffer 3 times. I haven't had time to look into that further. It may be smart to investigate using NSOpenGLView so we piggy back on all the latest changes Apple has added into this especially since al the rendering happens in framebuffers in the render engine itself.

@akien-mga akien-mga added this to the 3.0 milestone Jul 25, 2017
@akien-mga akien-mga requested a review from reduz July 26, 2017 05:50
@akien-mga akien-mga merged commit f55211a into godotengine:master Jul 26, 2017
@BastiaanOlij BastiaanOlij deleted the ios_fix_framebuffer_order branch July 27, 2017 07:27
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.

2 participants