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

avoid get color_read_* with depth format #2997

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

qiankanglai
Copy link
Contributor

Description

Avoid crash for serializing depth texture (some driver may crash when GL.glGetIntegerv(eGL_IMPLEMENTATION_COLOR_READ_FORMAT, (GLint *)&implFormat); with no color attachment found.

In fact the code path remains the same because implFormat and implType is only needed when depthFormat==false.

@qiankanglai qiankanglai reopened this Jul 25, 2023
@baldurk
Copy link
Owner

baldurk commented Jul 25, 2023

It goes to show that there's never an end to Android driver bugs...

@baldurk baldurk merged commit 36e5581 into baldurk:v1.x Jul 25, 2023
@qiankanglai qiankanglai deleted the fix_glGetTexImage branch July 25, 2023 13:44
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