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

show abnormality with 174x100 yuv data #1

Closed
douzhongqiang opened this issue May 21, 2020 · 3 comments
Closed

show abnormality with 174x100 yuv data #1

douzhongqiang opened this issue May 21, 2020 · 3 comments
Assignees

Comments

@douzhongqiang
Copy link

show abnormality with 174x100 yuv data.

@MasterAler
Copy link
Owner

MasterAler commented Jun 16, 2020

@douzhongqiang
Sorry for such a long time to answer, was quite busy recently.
Could you, please, provide some sample data or source, where I could check and debug the problem?

@MasterAler MasterAler self-assigned this Jun 16, 2020
@douzhongqiang
Copy link
Author

I have found a solution

add the following code before glTexImage2D

glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);

@MasterAler
Copy link
Owner

Thanks! Done.

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