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

Allow passing null as glTexImage2d Buffer #18

Open
wakaztahir opened this issue Oct 9, 2023 · 1 comment · May be fixed by #25
Open

Allow passing null as glTexImage2d Buffer #18

wakaztahir opened this issue Oct 9, 2023 · 1 comment · May be fixed by #25

Comments

@wakaztahir
Copy link

wakaztahir commented Oct 9, 2023

I tried passing an empty buffer but that didn't work

My codebase explicitly passed null and it works on Android, I don't know about other platforms, An android only solution or multiplatform solution should be tried

   // null can be passed as buffer in android codebase
   GLES20.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0,
        GL_RGBA, GL_UNSIGNED_BYTE, null
   )
@wakaztahir wakaztahir reopened this Oct 11, 2023
@wakaztahir wakaztahir changed the title [Question] How to replace these calls Allow passing null on glTexImage2d Oct 11, 2023
@wakaztahir wakaztahir changed the title Allow passing null on glTexImage2d Allow passing null as glTexImage2d Buffer Oct 11, 2023
@wakaztahir wakaztahir linked a pull request Oct 12, 2023 that will close this issue
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 a pull request may close this issue.

1 participant