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

gles/compat: Handle glDeleteFramebuffers() where the buffer is bound. #1266

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

ben-clayton
Copy link
Contributor

See the comment for details.

Fixes: #1261

@ben-clayton ben-clayton requested a review from dsrbecky October 25, 2017 23:31
Copy link
Contributor

@dsrbecky dsrbecky left a comment

Choose a reason for hiding this comment

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

Fixing this in the API doesn't work?

@ben-clayton
Copy link
Contributor Author

ben-clayton commented Oct 26, 2017

The API correctly handles the state for this, but it doesn't generate new calls to glBindFramebuffer, which compat looks for to do sRGB trickery.

case *GlDeleteFramebuffers:
// If you delete a framebuffer that is currently bound then the
// binding automatically reverts back to the default framebuffer
// (0). As we do compat for glBindBuffer(), scan the list of
Copy link
Contributor

Choose a reason for hiding this comment

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

s/glBindBuffer/glBindFramebuffer/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ben-clayton ben-clayton merged commit 4a7043e into google:master Oct 26, 2017
@ben-clayton ben-clayton deleted the fix-fb-diffs branch October 26, 2017 10:14
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.

2 participants