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

Default frame buffer object #22

Open
eprikazchikov opened this issue Aug 6, 2019 · 1 comment
Open

Default frame buffer object #22

eprikazchikov opened this issue Aug 6, 2019 · 1 comment

Comments

@eprikazchikov
Copy link

Hi, it would be nice to have the public interface to get the default frame buffer id like uint32_t glfmDefaultFrameBuffer() in most cases it will return 0 but for the iOS/tvOS case it must return _defaultFramebuffer from the implementation. The motivation of this is simple, in case of if you are using framebuffers inside mainLoopFunc it would be hard to restore the default framebuffer without any glGet*.

@brackeen
Copy link
Owner

brackeen commented Aug 7, 2019

I think using glGet* is a better solution here. I have done this in my own code.

GLint param;
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &param);

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

No branches or pull requests

2 participants